in reply to Re^2: Somthing related to encoding ??
in thread Somthing related to encoding ??
Also note that if you just want a valid HTML output, and your text is already utf-8 encoded, you can specify the utf-8 charset in your html page and then you don't need to use the &#number; encoding. This is also more efficient in terms of file-size.
You can set the charset in your content-type header (either generate the content-type "text/html; charset=utf-8" from a script or configure the webserver to send that content-type for static html files), or you can use the following meta-tag in your HTML head:
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
Ps/update: if you want to work with unicode / utf-8 text, you should use a recent perl version (5.8.0 or higher if you can get it); unicode handling has improved a lot in the last releases.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Somthing related to encoding ??
by Anonymous Monk on Aug 10, 2005 at 17:59 UTC | |
by fishbot_v2 (Chaplain) on Aug 10, 2005 at 19:07 UTC |