🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.csharpbuilder.language.csharp
1 messages
1 total messages Started by chris Mon, 14 Aug 2006 04:06
How to convert String to utf 8 or utf 16?
#151
Author: chris
Date: Mon, 14 Aug 2006 04:06
10 lines
1290 bytes
HI
when i use the bdpDataAdapter1.DataSet.GetXml(), this would return the xml 
string. HOwever, the database is stored using UTF16. Hence when the xml 
string is returned, the chinese characters are not shown.
Please advice on how to convert the string to a unicode string.
In delphi, i can use the UTFEncode and UTFDecode function but in C#?? is 
there such functions?

thanks
chris 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads