Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] Why am I not seeing Japanese in my web page on my Android? [NOT SOLVED]
- Date: Tue, 06 Sep 2011 17:02:52 +0900
- From: Darren Cook <darren@example.com>
- Subject: Re: [tlug] Why am I not seeing Japanese in my web page on my Android? [NOT SOLVED]
- References: <CA+kCxRY15wt9s9_CxxEZnoRS9pybyvoyrW0AK5LA0x86FkV=VQ@example.com>
- User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.20) Gecko/20110805 Thunderbird/3.1.12
> After I adjusted the meta tags as described in my last post, I was > seeing kanji being displayed, and thought everything was hunky dory. > > However, I continued using the interface a bit, and discovered that > after JSON data had been sent to and from the phone, the kanji got > mangled back to the ASCII string as described before. > ... Could it be the JSON is sending an HTTP header that says a different encoding? I'm assuming you are using apache and php. IIRC, the way they work together is if the PHP script sets the Content-Type header then Apache does not touch it. However if the PHP script does not set one then Apache will add its default. (And if Apache has been setup with no default then it sends nothing.) A meta-tag should override the http header. So, at the top of your PHP script that processes the ajax request, try adding: header('Content-Type: application/json; charset=UTF-8'); (If using an ajax library, or a framework, it is first have a search through to see if there is already a Content-Type or encoding setting.) Darren -- Darren Cook, Software Researcher/Developer http://dcook.org/work/ (About me and my work) http://dcook.org/blogs.html (My blogs and articles)
- Follow-Ups:
- Re: [tlug] Why am I not seeing Japanese in my web page on my Android? [NOT SOLVED]
- From: Edmund Edgar
- Re: [tlug] Why am I not seeing Japanese in my web page on my Android? [NOT SOLVED]
- From: Jim Breen
- Re: [tlug] Why am I not seeing Japanese in my web page on my Android? [NOT SOLVED]
- From: Stephen J. Turnbull
- References:
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Why am I not seeing Japanese in my web page on my Android? [NOT SOLVED]
- Next by Date: Re: [tlug] Why am I not seeing Japanese in my web page on my Android? [NOT SOLVED]
- Previous by thread: Re: [tlug] Why am I not seeing Japanese in my web page on my Android? [NOT SOLVED]
- Next by thread: Re: [tlug] Why am I not seeing Japanese in my web page on my Android? [NOT SOLVED]
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links