Re: Always setting UTF-8 flag - am I bad?

2004-08-05 Thread Nick Ing-Simmons
Erland Sommarskog <[EMAIL PROTECTED]> writes: >Jean-Michel Hiver ([EMAIL PROTECTED]) writes: >> Erland Sommarskog wrote: >>>I working with an XS module that passes queries to MS SQL Server and >>>returns data back using SQLOLEDB. MS SQL Server stores Unicode data >>>as UTF-16. Also, all metadata is

Re: Always setting UTF-8 flag - am I bad?

2004-08-05 Thread Jungshik Shin
On Thu, 5 Aug 2004, Nick Ing-Simmons wrote: > >Alright, I failed to say that this is an XS module, so I convert with > >WideCharToMultiByte, a Windows routine(*), put the result in an SV, and > >then say SvUTF8_on. > > The possible danger here is if the "multi byte" encoding for > user's environme

Re: Always setting UTF-8 flag - am I bad?

2004-08-05 Thread Erland Sommarskog
Nick Ing-Simmons ([EMAIL PROTECTED]) writes: > The possible danger here is if the "multi byte" encoding for > user's environment is not UTF-8 but (say) a Japanese one. No problem. WideCharToMultiByte has an argument where you tell what you want to convert to, and I specifically say that I want UT