Forum Moderators: open

Message Too Old, No Replies

Displaying Japanese text from mysql db in browser

         

loquela

6:41 pm on Nov 8, 2008 (gmt 0)

10+ Year Member



I spotted this post from way back.

[webmasterworld.com...]

there have been no responses and I have a very similar problem I have a Wordpress site set up with correct db collation and and document encoding and Japanese displays perfectly in the blog and the database vi phpmyadmin. However, if I run a query and display the results in a page outside Wordpress the output displays as ? ...

All this takes place on the same server, querying the same database - any hints anybody?

Cheers

rocknbil

8:15 pm on Nov 8, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome aboard loquela, perhaps document encoding as in this thread [webmasterworld.com]?

loquela

11:16 pm on Nov 8, 2008 (gmt 0)

10+ Year Member



Thanks Rocknbil,

Not sure the post you suggest has the answer...?

rocknbil

2:04 pm on Nov 9, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



But it might, what are you doing for document encoding?

loquela

7:40 am on Nov 10, 2008 (gmt 0)

10+ Year Member



Thanks,
The page I'm having the problems with has the same enconding as the Wordpress site:

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

The first page has no problem displaying Japanese charaxters as you can see - the <h1> is hard coidedinto the page and that displays fine. Its the text that is retrieved from the database that gets scrambled. But hte same data in the Wordpress site (on the same server) is fine.

Cheers

[edited by: eelixduppy at 5:37 pm (utc) on Nov. 12, 2008]
[edit reason] removed URLs [/edit]