c# - How to change encoding of text box value -
i have c# form text box , expect english or greek characters. cannot display greek characters. converting encoding code page 1253 follows:
byte[] responsebytes = encoding.getencoding(1253).getbytes(mytextbox.text); message = encoding.getencoding(1253).getstring(responsebytes);
the result not expected 1 greek characters (no problems english ones). given character 'τ' appears 'Δ', given character 'υ' appears 'Ε', etc. looking in codepage table, seems conversion matches character f_1 c_1, f_2 c_2, etc. there wrong in way converting encoding?
you may want @ unicode (utf-8) display , storage encoding. believe handle anything.
Comments
Post a Comment