Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,153,487 members, 7,819,761 topics. Date: Monday, 06 May 2024 at 10:40 PM |
Nairaland Forum / Science/Technology / Webmasters / Problem With Special Characters And Multilanguages (648 Views)
Problem With Gigalayer: I Need Help / Problem With Registration At Wapka / Problem With Web4africa.net (2) (3) (4)
Problem With Special Characters And Multilanguages by ogzille(m): 11:51am On Aug 19, 2010 |
I created a simple comment wall that submits using ajax. Using javascript i collect user input: var sharetxt = encodeURIComponent(document.getElementById("cw_share_txt".value); then pass it to a php page, on the php page, i collect the passed data: $text=nl2br(htmlentities(trim($_POST["txt"]))); Encoding of the php page above: header("Content-Type: text/xml; charset=utf-8" My problem is that the wall doesnt still support multi languages (displays as ? and causes my xml not to work) i still problems with some special characters (displays as � or ?) What am i not doing right? please assist |
Re: Problem With Special Characters And Multilanguages by sayhi2ay(m): 5:31pm On Aug 19, 2010 |
try using the other charset, or remove it entirely, maybe you are doing it twice |
Re: Problem With Special Characters And Multilanguages by ogzille(m): 6:23pm On Aug 19, 2010 |
@sayhi2ay, which other charset supports multi languages? |
Re: Problem With Special Characters And Multilanguages by sayhi2ay(m): 7:58pm On Aug 19, 2010 |
try charset=iso-8859-1 |
Re: Problem With Special Characters And Multilanguages by Nobody: 9:10pm On Aug 20, 2010 |
sayhi2ay:that was what i was going to say too. For most of my ajax-driven apps, i usually boot the page with header("Content-Type: text/xml; charset=iso-8859-1" |
(1) (Reply)
Who Can Teach Methe A-z Of Word Press Blogging. / Need A Web Designer? / Promo! - Learn Html, Css, Joomla & Php In Abuja. Call 07031613377
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 6 |