Our new official repo is on github
LCD Smartie version 5.6 is released!
Download it now: https://github.com/LCD-Smartie/LCDSmartie/releases

Problem with character sets and .Net

Discussing issues that occur during plugin development.

Moderators: _X7JAY7X_, caesar, IFR, mattcro, limbo

Post Reply
en3rgy
Posts: 4
Joined: October 30th, 2007, 3:17 pm

Problem with character sets and .Net

Post by en3rgy »

i decide to write a plugin for Smartie using vb.net when i use demo plugins i have a problem with non ascii characters (Cyrillic in my case)

Code: Select all

    Public Function function1(ByVal param1 As String, ByVal param2 As String) As String
       
        Return param1 

    End Function
i read about .net using only Unicode as strings and Smartie use ascii 8bit charset
so PC display show some garbage characters x2 because the unicode

i dont see way to make vb.net return needed string format :? and thinking it is impossible using string

is it possible function to return other type data instead of string ??? i try byte() dont work :(

mattcro
Forum Supporter
Posts: 590
Joined: March 8th, 2006, 1:58 pm
Location: Scotland

Post by mattcro »

I think this is what I tried doing a while ago in VB.NET with no luck. Have a look at the System.Text.Encoding class. I don't know if it can actually do what we need, though...

Post Reply