in reply to accents and diacritical marks in a web page

I guess you can solve your problem with HTML::Entities.

--shmem

_($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                              /\_¯/(q    /
----------------------------  \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
  • Comment on Re: accents and diacritical marks in a web page

Replies are listed 'Best First'.
Re^2: accents and diacritical marks in a web page
by punkish (Priest) on Sep 10, 2007 at 03:19 UTC
    yes indeed, very nice, thank you.

    Of course, this means, I have to run everything through HTML::Entities. As I said elsewhere, besides the various interface text, I also have data in a db (currently SQLite) that has text in it in various languages, and that data already has accents as required. When I bring that data up in forms, it shows correctly, but when that form is sent back updated to the database, the accents get clobbered. What it means is the HTML::Entities has to become the gateway for all text going in or out. What a pain. Yet, when I write up the plain text file without escaping all the non-ascii text, it shows up just fine in the browser.

    --

    when small people start casting long shadows, it is time to go to bed