in reply to Re^3: Do I have a unicode problem, or is this something else?
in thread Do I have a unicode problem, or is this something else?

Hi Graff,

Well in fact the first mechanism didn't work for me but the second did. I'm sure it was something to do with my own code! So I changed use utf8 to use Encode throughout and everything sprung to life, incluyding some code which I didn't know wasn't working! So now I have use Encode but not use utf8. Do you think that is OK?

Regards

Steve

Replies are listed 'Best First'.
Re^5: Do I have a unicode problem, or is this something else?
by ikegami (Patriarch) on Jun 10, 2010 at 17:35 UTC

    use utf8; tells perl that your source is encoded using UTF-8. If your source is encoded using UTF-8, you want to use use utf8;.

    If you use Encode's functions (e.g. encode($enc, $text) and decode($enc, $text)), then you'll want to load Encode and import its functions.