in reply to How to recognize Unicode data received from any C library?

You might want to consider adding a BOM to your Unicoded characterstreams. But that would only make sense if your application is the only one writing to the fields in the database.

Otherwise you're stuck with store the utf8-ness of information somewhere else. Although some database (drivers) may "know" that it's UTF-8 as well (when having been fed Perl UTF-8-marked strings through DBI) and may restore that information when reading (taking away your "need" to know this). Other monks may know this for sure.

Liz

  • Comment on Re: How to recognize Unicode data received from any C library?

Replies are listed 'Best First'.
Re: Re: How to recognize Unicode data received from any C library?
by Courage (Parson) on Aug 24, 2003 at 20:26 UTC
    Indeed.

    I thought bit more and realized that I should somehow "ask" C library about Unicode-ness of data: as long as my question arises, underlying "C" library should support it and should know about Unicode-ness of its data, regardless of method (BOM or storing somewhere else).

    DB was just an example of my more general problem.

    Thank you, you really helped me a bit further.

    Courage, the Cowardly Dog