c# - transform UT8 to UCS-2 -


i have learned sql server 2005 not support utf8:

utf8 problem sql server

i believe supports ucs-2 though , way transform utf8 ucs-2 without loss of information if possible. it?

any feedback welcome. thanks!

christian

ps: c# preferred (-:

it looks have text file encoded in utf-8 , want re-encode ucs-2. streamreader , streamwriter support encoding automatically; supply encoding object in constructors.

you should able to:

  1. construct streamreader encoding.utf8
  2. construct streamwriter encoding.unicode
  3. read lines reader , write them writer

Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -