in reply to Re^4: Yet another Encoding issue...
in thread Yet another Encoding issue...
By the way, depending on what charset you are specifying in your html you may get problems. For example, the little CGI script:
displays as: $c = é $dc = é#!/bin/bash echo "Content-Type: text/html" echo "" perl -we 'use Encode; $c = encode("UTF-8", "é"); $dc = decode("UTF-8", + $c); print "\$c = $c \$dc = $dc\n"'
But if you fix the encoding like:
it displays as: $c = é $dc = é#!/bin/bash echo "Content-Type: text/html; charset=UTF-8" echo "" perl -we 'use Encode; $c = encode("UTF-8", "é"); $dc = decode("UTF-8", + $c); print "\$c = $c \$dc = $dc\n"'
In Section
Seekers of Perl Wisdom