Hi Ross,
I hope someone can help. I'm using D7. I have some UTF-16 Unicode (Chinese) characters stored currently in an AnsiString variable.
How did you get this data in the AnsiString? It would have been better to just store it in an array of bytes.
The string starts $FF $FE .
Then your best bet is to write the string to a file, and read it back in a WideString using BlockRead.
Ross.
Groetjes, Bob Swart -- Bob Swart Training & Consultancy (eBob42.com) Forever Loyal to Delphi Chairman Delphi Development Network (DDN) powered by SDN - www.sdn.nl Embarcadero Technology Partner - Delphi & RAD Studio Reseller BeNeLux http://twitter.com/eBob42 LinkedIn: http://nl.linkedin.com/in/drbob42 Delphi Win32 & .NET books on Lulu.com: http://stores.lulu.com/drbob42 Personal courseware + e-mail support http://www.ebob42.com/courseware Blog: http://www.drbob42.com/blog - RSS: http://eBob42.com/weblog.xml _______________________________________________ Delphi mailing list Delphi@elists.org http://lists.elists.org/cgi-bin/mailman/listinfo/delphi