bumba420 / 4chandk

Automatically exported from code.google.com/p/4chandk
0 stars 0 forks source link

Better unicode support #2

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Right now the unicode support is broken

Original issue reported on code.google.com by botti...@gmail.com on 8 Mar 2007 at 3:52

GoogleCodeExporter commented 8 years ago
Replace in writer.class.php:

'<meta http-equiv="content-type" content="text/html;charset=UTF-8" />';

for:

'<meta http-equiv="content-type" content="text/html;charset=iso-8859-1" />'; or 
your
unicode code.

Original comment by lmsx.ka...@gmail.com on 16 Mar 2007 at 7:56

GoogleCodeExporter commented 8 years ago
but how would setting the charset to ISO-8859-1 make the script support unicode?

Original comment by botti...@gmail.com on 17 Mar 2007 at 9:07

GoogleCodeExporter commented 8 years ago
That was only an example, you cannot make unicode for every languaje or set of
characters, so the way that i see that could be more easy is to asign the 
Variable in
the admin section. Chartset: -----(text input)   <- User will define charset 
here
So in the writer.classs.php you could have

'<meta http-equiv="content-type" content="text/html;charset= .(&VAR_CHARSET). " 
/>';

So it will be supported for every languaje and code set, obviulsy could be a 
very
good idea to put a link to the unicode and char codes from the admin section, 
just
below the  Chartset: -----(text input) <- User will define charset here.

In the other way and hadr way is to experiment with:
UTF-7
UTF-8
UTF-16
UTF-32
SCSU
Punycode
BiDi
BOM
Consort
UCS
Han

All integrated in the output and its kind of hard, best way of unicode is now 
the
Punycode that supports almost every character known but its kind of hard to use
because you will need to have another Punycode function that generates every
character in its code.

Original comment by lmsx.ka...@gmail.com on 17 Mar 2007 at 7:35