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

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

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

unit testing - How to mock PreferenceManager in Android? -