You are here: Re: Encoding problem « PHP Programming Language « IT news, forums, messages
Re: Encoding problem

Posted by imoschak on 10/25/66 11:52

Juliette wrote:
> imoschak wrote:
> > Hi there i have a problem while parsing and xml file.
> > The file is a backup from moodle (moodle.xml). When i open the file
> > with one of my editors
> > and setting Encoding to utf8 font courier standard or greek characters
> > the editor can see all greek strings contained within the file
> > perfectly. On the other hand when i try to open it with php
> > parse it and then display it on a web page the data from the file come
> > out like latin characters like (A~ atilde)(o: o umplaud) and others
> > like this. Updating moodle is not an option so i have to find a
> > workaround. Has anybody heard of something like this? thanks in advance
> >
>
> The encoding which is send in the headers is probably latin which would
> cause the faulty display.
> Have a look at moodle to see if you can set the page encoding in the
> configuration or something.

The encoding in the meta tags is set to utf-8 plus the data from the
xml file is printed out by a page that i created not by moodle. And in
the editor if i set the font to courier ANSI characters the editor
prints out exactly the same latin characters as the broswer (sorry i
forgot this:-)

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация