Φλ Chars!

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

[n00b]
Forum Commoner
Posts: 34
Joined: Sat Mar 20, 2004 7:06 pm

Post by [n00b] »

MarK (CZ) wrote:Use different charset, greek should be "iso-8859-7", I think... In source code, it will still look weird but one char will now mean really one char. :)

EDIT: check out e.g. http://gr.yahoo.com/
yes but in php manual it says that it doesnt support other charsets than these:
ISO-8859-1 Western European, Latin-1
ISO-8859-15 Western European, Latin-9. Adds the Euro sign, French and Finish letters missing in Latin-1(ISO-8859-1).
UTF-8 ASCII compatible multi-byte 8-bit Unicode.
cp1252 Windows specific charset for Western European.
BIG5 Traditional Chinese, mainly used in Taiwan.
GB2312 Simplified Chinese, national standard character set.
BIG5-HKSCS Big5 with Hong Kong extensions, Traditional Chinese.
Shift_JIS Japanese
EUCJP Japanese
User avatar
MarK (CZ)
Forum Contributor
Posts: 239
Joined: Tue Apr 13, 2004 12:51 am
Location: Prague (CZ) / Vienna (A)
Contact:

Post by MarK (CZ) »

[n00b] wrote:
MarK (CZ) wrote:Use different charset, greek should be "iso-8859-7", I think... In source code, it will still look weird but one char will now mean really one char. :)

EDIT: check out e.g. http://gr.yahoo.com/
yes but in php manual it says that it doesnt support other charsets than these:
ISO-8859-1 Western European, Latin-1
ISO-8859-15 Western European, Latin-9. Adds the Euro sign, French and Finish letters missing in Latin-1(ISO-8859-1).
UTF-8 ASCII compatible multi-byte 8-bit Unicode.
cp1252 Windows specific charset for Western European.
BIG5 Traditional Chinese, mainly used in Taiwan.
GB2312 Simplified Chinese, national standard character set.
BIG5-HKSCS Big5 with Hong Kong extensions, Traditional Chinese.
Shift_JIS Japanese
EUCJP Japanese
Czech charset isn't there either and I can work with czech chars in db.
Last edited by MarK (CZ) on Tue Nov 02, 2004 3:33 pm, edited 1 time in total.
[n00b]
Forum Commoner
Posts: 34
Joined: Sat Mar 20, 2004 7:06 pm

Post by [n00b] »

but I CAN save Greek text in a mysql database as normal chars and can retrieve it and show it in the browser normally.
but there is something in the xcart (which uses smarty, maybe this is the prob) that saves Greek text as codes. Also it retrieved it as codes too and showed them in the browser as code (like the one in the original posts) until I contacted the xcart support and they said me to remove some code (it was like "$category.category_name|escape" in the template files and I had to remove the "|escape") and then it showed them normally BUT on the source code it was still as code and same applies to the database. Now I cant contact them any more since my technical support was expired long time ago.
User avatar
MarK (CZ)
Forum Contributor
Posts: 239
Joined: Tue Apr 13, 2004 12:51 am
Location: Prague (CZ) / Vienna (A)
Contact:

Post by MarK (CZ) »

So sorry, I can't help you any more because I don't know anything about xcart.
burzvingion
Forum Newbie
Posts: 11
Joined: Sun Apr 18, 2004 2:30 pm

Y not unicode?

Post by burzvingion »

[n00b] wrote:
MarK (CZ) wrote:Use different charset, greek should be "iso-8859-7", I think... In source code, it will still look weird but one char will now mean really one char. :)

EDIT: check out e.g. http://gr.yahoo.com/
yes but in php manual it says that it doesnt support other charsets than these:
ISO-8859-1 Western European, Latin-1
ISO-8859-15 Western European, Latin-9. Adds the Euro sign, French and Finish letters missing in Latin-1(ISO-8859-1).
UTF-8 ASCII compatible multi-byte 8-bit Unicode.
cp1252 Windows specific charset for Western European.
BIG5 Traditional Chinese, mainly used in Taiwan.
GB2312 Simplified Chinese, national standard character set.
BIG5-HKSCS Big5 with Hong Kong extensions, Traditional Chinese.
Shift_JIS Japanese
EUCJP Japanese
Why not use unicode UTF-8 or UTF-16? I think php5 (the new version) supports 16. i would think there'd be greek chars in there, but ive never really had the urge to use any freakish chars other than the german ones (ÄäÖöÜüß) and é and they're all in extended ascii as far as i know...
Post Reply