|
|
| Perl-Sensitive Sunglasses | |
| PerlMonks |
Wide Character in Print Warningby nmork (Initiate) |
| on Oct 09, 2012 at 15:24 UTC ( #998027=perlquestion: print w/ replies, xml ) | Need Help?? |
|
nmork has asked for the
wisdom of the Perl Monks concerning the following question:
I'm writing a script which generates JSON code based on an arrayref result from a DBI query. To cover issues with special characters (quotes, slashes, etc.) I "escape" them with a library subroutine changing space to %20, etc. (similar to javascript's escape() function) thus I can unescape them with my getJSON ajaxed javascript library function to get back the original data. All data is ASCII, data fields being encoded can be alpha-numeric primary key type identifiers (like model numbers, serial numbers, etc.) I am getting "wide character in print" messages when I run this script. There is no wide character in the data--database character encoding is restricted to ASCII. The only thing I can think is somehow I've munged the data to have ascii wide-character representation or one of these key type identifiers coincidentally has ascii wide-character representation. The only such representation I know of involves backslashes and possibly curly brackets. Is there another representation I could have stumbled across unkowingly? Here is a block of the ascii data which seems to trigger the message:
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||