Page 1 of 2

Φλ Chars!

Posted: Fri Apr 16, 2004 10:43 am
by [n00b]
Guys, how to convert chars like

Code: Select all

Φλας
(its some greek text) into normal text?
They show normall on the browser but when saved on a database or anywhere else including in html source they look like this

Code: Select all

Φλας
the problems is that i use xcart (php e-shop software) and it saves ALL the Greek texts like this. I will write a script that converts them all to normal but I need your help on how to convert them
:cry:

Posted: Fri Apr 16, 2004 2:14 pm
by malcolmboston
sorry but there is no difference in that code, maybe the forums are filtering it out?

any chance of an image?

Posted: Fri Apr 16, 2004 2:21 pm
by magicrobotmonkey
in text files/html source they will look like that because the char set is limited. Thats how they have to look there. You'll just have to view them in a page to see what they're supposed to look like.

Posted: Fri Apr 16, 2004 2:26 pm
by malcolmboston
yeah i know mate,

thats why im asking for an image or a link to the page displaying it

Posted: Fri Apr 16, 2004 2:28 pm
by magicrobotmonkey
yea i know, i was telling that to [n00b], expanding on your advice!

Posted: Fri Apr 16, 2004 2:29 pm
by malcolmboston
lol, ok sorry :lol:

Posted: Fri Apr 16, 2004 3:03 pm
by [n00b]
sorry its just my bad English. I `ll try to explain it again :wink:

When I write e.g Image in Greek, its is saved in the xcart database as:
Image (each letter is converted into a 5char code like &#xxx)
But when it is displayed in the browser its normal. Although if you check the html source its still coded.
So I need help on which function(s) I need to use in order to convert those codes into normal

Thanks :)

Posted: Fri Apr 16, 2004 3:13 pm
by magicrobotmonkey
You can't have it look normal in the HTML code because its limited to normal latin characters or something - outside of that you have to use either acsii or unicode codes - like you are doing

Posted: Fri Apr 16, 2004 3:25 pm
by [n00b]
No it is possible I saw a lot of sites doing this and also one xcart webshop. I mailed them on how to do this but they didnt reply :oops:

Posted: Fri Apr 16, 2004 3:29 pm
by magicrobotmonkey
in the html code they show them? well, i guess you just have to get an editor that allows it

Posted: Fri Apr 16, 2004 3:42 pm
by [n00b]
allows what?

actually I need a way to convert it :cry:

Posted: Fri Apr 16, 2004 5:07 pm
by magicrobotmonkey
Like, go into ms word or something and go to insert->symbol and select one of those greek deals. then copy and paste it into notepad - see? notepad doesn't support it, word does. So edit your stuff in word (juuust kidding!) or get one that will show them!

Posted: Fri Apr 16, 2004 5:14 pm
by MarK (CZ)
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/

Posted: Fri Apr 16, 2004 5:18 pm
by magicrobotmonkey
yea thats the word i couldnt get - charset! can you change that in notepad?

Posted: Sat Apr 17, 2004 12:49 am
by MarK (CZ)
I think that you must turn this charset on for whole windows and then it could be shown normal. I had similar problems with advanced czech chars...