Φλ 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

Φλ Chars!

Post 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:
malcolmboston
DevNet Resident
Posts: 1826
Joined: Tue Nov 18, 2003 1:09 pm
Location: Middlesbrough, UK

Post by malcolmboston »

sorry but there is no difference in that code, maybe the forums are filtering it out?

any chance of an image?
magicrobotmonkey
Forum Regular
Posts: 888
Joined: Sun Mar 21, 2004 1:09 pm
Location: Cambridge, MA

Post 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.
malcolmboston
DevNet Resident
Posts: 1826
Joined: Tue Nov 18, 2003 1:09 pm
Location: Middlesbrough, UK

Post by malcolmboston »

yeah i know mate,

thats why im asking for an image or a link to the page displaying it
magicrobotmonkey
Forum Regular
Posts: 888
Joined: Sun Mar 21, 2004 1:09 pm
Location: Cambridge, MA

Post by magicrobotmonkey »

yea i know, i was telling that to [n00b], expanding on your advice!
malcolmboston
DevNet Resident
Posts: 1826
Joined: Tue Nov 18, 2003 1:09 pm
Location: Middlesbrough, UK

Post by malcolmboston »

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

Post 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 :)
magicrobotmonkey
Forum Regular
Posts: 888
Joined: Sun Mar 21, 2004 1:09 pm
Location: Cambridge, MA

Post 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
[n00b]
Forum Commoner
Posts: 34
Joined: Sat Mar 20, 2004 7:06 pm

Post 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:
magicrobotmonkey
Forum Regular
Posts: 888
Joined: Sun Mar 21, 2004 1:09 pm
Location: Cambridge, MA

Post by magicrobotmonkey »

in the html code they show them? well, i guess you just have to get an editor that allows it
[n00b]
Forum Commoner
Posts: 34
Joined: Sat Mar 20, 2004 7:06 pm

Post by [n00b] »

allows what?

actually I need a way to convert it :cry:
magicrobotmonkey
Forum Regular
Posts: 888
Joined: Sun Mar 21, 2004 1:09 pm
Location: Cambridge, MA

Post 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!
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) »

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/
magicrobotmonkey
Forum Regular
Posts: 888
Joined: Sun Mar 21, 2004 1:09 pm
Location: Cambridge, MA

Post by magicrobotmonkey »

yea thats the word i couldnt get - charset! can you change that in notepad?
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) »

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...
Post Reply