Reply New Topic
2009/6/12 5:18:24
#1
Offline
Home away from home

A bit confused about character encoding....

Hello folks,

Perhaps I mix thing up...
My database is in UTF-8, so I thought php files should also be in that encoding.
But when I put the word "Geëindigd" in a language file which is UTF-8 I see "Geëindigd". What am I doing wrong here?

I compared with a another lang file with an ë in it and that is UTF-8, and there it looks OK....

Thx for helping and grtz,

_________________
Ronaldus

www.leefinaandacht.nl

2009/6/12 13:29:41
#2
Offline
Home away from home

Re: A bit confused about character encoding....

PHP files don't need to be UTF-8 for the site to run properly, but language and theme files should be UTF-8 and declared this way.

Remember also that even if the data is properly encoded in the database, maybe you're not seeing it right in your screen. I mean, for this "database oputput" to be properly seen, the page should be rendered in UTF-8.

_________________
If you can't understand what I'm saying, you're not geek enough
ISegura.es

2009/6/12 16:14:07
#3
Offline
Home away from home

Re: A bit confused about character encoding....

what he means is check your charset in the source of your page.


2009/6/13 3:25:28
#4
Offline
Home away from home

Re: A bit confused about character encoding....

Well, I checked, and in the properties of the file it says that it's UTF-8.
So I uploaded this module (XoopsPolls 1.0), with this Dutch language files, which runs now on www.nvshv.nl (a Xoops 2.0.18 site which I soon want to switch to ICMS) to my ICMS site www.leefinaandcht.nl and guess what: the ë is correctly presented to the visitor.

I checked and other lang files of modules have the same on my xoops site...

So this problem will solve itself when I switch...

Thx for replying and greetings,

_________________
Ronaldus

www.leefinaandacht.nl

Reply New Topic extras
 Previous Topic   Next Topic
You can view topic.
You can start a new topic.
You can reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You can post without approval.