RE: CGI and UTF

2002-11-20 Thread Mark Proctor
Barry, Yes I can do that, I already do for Soap::Lite. Now that I have it working with the example below should I be using anything else? I've found that I have to do the same for variables from DBI as well as CGI - this does seem a bit excessive, so any simpler/more efficent technique would be ap

RE: CGI and UTF

2002-11-20 Thread Mark Proctor
Nicholas, Cisco are very much "if its not broken don't fix it" - they are generally slow to use new technologies. We are still using standard htaccess file with lists of user names for authentification, which causes a huge problem for large htaccess file because of the 8K limit and I've been strug

CGI and UTF

2002-11-20 Thread Mark Proctor (mproctor)
Title: Message I'm having some problems with XML/UTF8 and CGI variables in perl5.6.1   I have attached an example of the problem, an example string is Descripción - although you will need to have XML::Simple installed.   The example takes an input string and then prints it twice - one with

Re: CGI and UTF

2002-11-20 Thread Nicholas Clark
On Wed, Nov 20, 2002 at 05:38:20PM -, Mark Proctor wrote: [upgrading from 5.6.1 to 5.8] > I have checked with the sysadmins at cisco and they said "no way" :( I'm not asking this as an attempt to provide arguments to give them back - if they are sure of their position, then it is necessary

RE: CGI and UTF

2002-11-20 Thread Mark Proctor
Success - I found this http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&threadm=2002 0429145407.00874.5678%40mb-me.aol.com&rnum=1&prev=/groups%3Fq%3Dperl %2Bpack%2Bcgi%2Butf%2BOR%2Butf8%26hl%3Den%26lr%3D%26ie%3DUTF-8%26oe%3DUT F-8%26as_qdr%3Dall%26selm%3D20020429145407.00874.5678

RE: CGI and UTF

2002-11-20 Thread Barry Caplan
At 06:47 PM 11/20/2002 +, Mark Proctor wrote: >Unfortunetly I have asked the cisco admins if we can have perl5.8 and >they said no way. Yeah but you can use various CPAN modules, even if you install them in a local directory, right? Barry

RE: CGI and UTF

2002-11-20 Thread Mark Proctor
Unfortunetly I have asked the cisco admins if we can have perl5.8 and they said no way. I have tried doing stuff like this: $text = $q->param('text'); if ($q->param('text')) { print $text . $xml->{message}; } else { print "\x{00F3}" . $xml->{message}; } And it works and displays fine. I displ

RE: CGI and UTF

2002-11-20 Thread Barry Caplan
Mark, I think 5.8 has a encode module with a normalize function. CPAN probably has something similar. The perl docs for those modules is probably a good place to start to understand unicode normalization. unicode.org is the definitive source but could be pretty pedantic if this is your first ex

Re: CGI and UTF

2002-11-20 Thread Daisuke Maki
I can't quite tell if it's related, but while using AxKit I encountered problems with using "." to concatenate strings. I changed the module in question to have a "use bytes" at the top, and that problem went away. I think it also went away when I use sprintf() to concatenate the strings. might

RE: CGI and UTF

2002-11-20 Thread Mark Proctor
I have checked with the sysadmins at cisco and they said "no way" :( So I have to get this working. Someone has said that I need to "normalise" the params from cgi - but I have no idea what that means. Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of

Re: CGI and UTF

2002-11-20 Thread Andreas J. Koenig
> On Wed, 20 Nov 2002 15:57:43 -, "Mark Proctor" <[EMAIL PROTECTED]> said: > I'm having some problems with XML/UTF8 and CGI variables in perl5.6.1 If you have any chance to upgrade to perl-5.8.0, please do it now. The Unicode model of 5.8.0 is much more mature than that of 5.6.* and the

CGI and UTF

2002-11-20 Thread Mark Proctor
Title: Message I'm having some problems with XML/UTF8 and CGI variables in perl5.6.1   I have attached an example of the problem, an example string is Descripción - although you will need to have XML::Simple installed.   The example takes an input string and then prints it twice - one with