c# - transform UT8 to UCS-2 -
i have learned sql server 2005 not support utf8:
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:
- construct
streamreader
encoding.utf8
- construct
streamwriter
encoding.unicode
- read lines reader , write them writer
Comments
Post a Comment