character encoding

  • Thread starter Thread starter LiMBi
  • Start date Start date
L

LiMBi

Hi,

Is there a way to encode "??????????? ??????????"
to "¶ÒÁ¹Ô´¹Ö§¤Ð µÃ§·Õèà»ç¹" and vice versa.
Thanks
 
LiMBi said:
Hi,

Is there a way to encode "??????????? ??????????"
to "¶ÒÁ¹Ô´¹Ö§¤Ð µÃ§·Õèà»ç¹" and vice versa.
Thanks

You have to be more specific. What you are asking for is impossible. A
string of only question marks and spaces can not hold the same amount of
information as a string of random characters of the same length.

I assume that what you really want to know is how to do encoding and
decoding so that you don't lose characters in the process. To answer
that you have to tell a little more about what you are doing, and what
encoding you are trying to use.
 
LiMBiZ said:
I am sorry, for that. Actualy it is thai character, but when i post it
convert to question mark. I used to encode it with code page "windows-874"
from MySQL connection.

See attached file.

Thanks
LiM

The encoding is named "windows-874", not "window-874". If that's not the
error, you have probably made some other mistake along the way.

What encoding did you use to decode the text after you encoded it?
 
Actualy, ByteFX.MySqlClient name space will control encoding stuff.

Connection = New MySqlConnection(ConString, Encoding.GetEncoding(874))

By using this connection, it encode from Thai script to Character when I
insert or update record and encode from Character to Thai script back to
display in textbox. It works fine.

But I want to encode the string with Thai script to character as in attached
file. And vice versa.

Any idea how to do that?

Göran Andersson said:
LiMBiZ said:
I am sorry, for that. Actualy it is thai character, but when i post it
convert to question mark. I used to encode it with code page
"windows-874" from MySQL connection.

See attached file.

Thanks
LiM

The encoding is named "windows-874", not "window-874". If that's not the
error, you have probably made some other mistake along the way.

What encoding did you use to decode the text after you encoded it?
 
Back
Top