1

Topic: Special characters not working when including extern.php

This is driving me nuts!

In the forums special characters are working perfectly, but when including extern.php in my Wordpress theme they end up as ?'s. The theme has UTF-8 set so it shouldn't be the problem, but yet it is since it's working on another site. Any suggestions on how to get around this?

Help please!

Re: Special characters not working when including extern.php

Link?

3

Re: Special characters not working when including extern.php

I'm playing with it here. (Not the "sharp" site.)

Re: Special characters not working when including extern.php

The theme is the problem, since your forum has ISO-8859-1 as the charset wink

5 (edited by tdh 2006-10-25 10:54)

Re: Special characters not working when including extern.php

Ouch. So the forum is not UTF-8 then? What will happen if I change it to that (in config.php if I'm not mistaken?) - will everything look messed up then?

I thought all PunBB forums where UTF-8 by default.

Edit: Oh, and you where right. When changing Wordpress to the ISO you specified the inclusion worked perfectly - Wordpress didn't however as it's meant to use UTF-8.

Re: Special characters not working when including extern.php

PunBB 1.3 will be UTF-8 by default I believe. 1.2 (the current version) is not.

Re: Special characters not working when including extern.php

Change the lang_encoding in lang/*/common.php to UTF-8

8

Re: Special characters not working when including extern.php

elbekko wrote:

Change the lang_encoding in lang/*/common.php to UTF-8

I just tried that but then all the special characters in the forum becomes ?'s and that's not good either.

9

Re: Special characters not working when including extern.php

Is it possible to convert the forum (which apparently is using ISO-8859-1) to UTF-8?

10

Re: Special characters not working when including extern.php

Any other suggestions here? Help is much appreciated!

11

Re: Special characters not working when including extern.php

Any more suggestions here? This is not resolved. sad

Re: Special characters not working when including extern.php

Only thing I can think of (although I don't know if it will work or not) is to convert all data in the database to UTF-8. The way I've seen suggested to do that is to go through all data and run PHP's utf8_encode on it.

13

Re: Special characters not working when including extern.php

Won't that bring a whole bunch of problems when an upgrade for PunBB is released? Also, will it work with new posts?

Re: Special characters not working when including extern.php

It shouldn't bring any problems as far as I know
And of course you'll also need to change the forum's lang_encoding to UTF-8 so everything works properly wink

15

Re: Special characters not working when including extern.php

Alright, I'll try this on a fresh install so that I don't break anything that is already live. Thanks, will let you guys know how it turns out.