in reply to Re^4: Yet another Encoding issue...
in thread Yet another Encoding issue...
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"'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Yet another Encoding issue...
by Bod (Parson) on Jun 01, 2024 at 22:06 UTC |