Michael Peters wrote:
Graham TerMarsch wrote:
I've run into an issue on one of the projects that I'm working on and thought
that I'd ping the list to see how others are handling this...
... stuff deleted ...
You need to do all of the following:
+ Tell the browser that the forms/pages are UTF-8 (using HTTP headers and <meta>
tags)
+ When the form data comes in, decode_utf8() it. If you're using CGI.pm you'll
need to use 3.30 which hasn't been released (you can find it on RT) cause it has
some UTF-8 fixes.
+ When doing DB pull/push you'll need to tell the database that the data is in
UTF-8. In MySQL it's done with the 'mysql_enable_utf8' flag on the database
handle.
+ If you're doing any file IO which may produce or read UTF-8 then you'll need
to make sure that your calls are using the IO layer magic syntax.
The biggest help for me was reading the perluniintro and perlunicode perldoc
pages.
Thanks! This is the type of check-list I've been looking for. Do you
find that you need to set the
form accept-charset attribute also?
-MikeB.
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/[email protected]/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]