in reply to Perl mySQL and £ signs
When you say "it comes out in mysql as ...", I expect you mean something like "when I use an xterm or an MS-DOS prompt window or some other thing where I can run mysql and issue queries interactively, the display I get is ...".
This would be expected assuming that your xterm or MS-DOS prompt window or whatever is displaying the data as if it were ISO-8859-1 or CP-1251 or some similar single-byte legacy character set. If you had a utf8-capable display window where you could see the output from mysql (e.g. a browser), it would show the utf8-encoded character correctly.
(update: just to be clear -- it's a display issue, not a data or perl issue per se)
(another update -- sorry I didn't happen to notice this sooner: if you set your browser to UTF8 and look at your own post, you'll see the single-character currency mark that I presume you intended to have in the database.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl mySQL and £ signs
by saintmike (Vicar) on Sep 19, 2005 at 04:25 UTC | |
by graff (Chancellor) on Sep 19, 2005 at 16:39 UTC |