in reply to Re^2: Why does perl not mark variable as utf-8?
in thread Why does perl not mark variable as utf-8?

I believe, that if use utf8 is in scope, all literals are marked as utf-8, but note that that only works on string literals. If you're reading strings from anywhere else, you still need to make sure they're upgraded in some other way.

By the way, the reason DBD::mysql currently doesn't upgrade all input is that it's not immediately clear which data/columns should be utf-8 text (and should be upgraded) and which is non-utf8 text or binary data (and must be left alone).

  • Comment on Re^3: Why does perl not mark variable as utf-8?

Replies are listed 'Best First'.
Re^4: Why does perl not mark variable as utf-8?
by Anonymous Monk on Aug 29, 2007 at 14:59 UTC
    Is that true? DBD::mysql apparently know what columns to mark on the way out.
    "When set, a data retrieved from a textual column type (char, varchar, etc) will have the UTF-8 flag turned on if necessary."
    Is that because of column metadata that is provided with the results of a select?