Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

json and special chars

 
   Database Forums (Home) -> PHP RSS
Next:  IBM documentation for DB2_PARALLEL_IO is contradi..  
Author Message
Sarah

External


Since: Oct 30, 2011
Posts: 4



(Msg. 1) Posted: Sun Oct 30, 2011 4:19 pm
Post subject: json and special chars
Archived from groups: comp>lang>php (more info?)

Hi! In my DB table I've chars like

òèìù

but when I generate json file I show

\u00e0\u00f2\u00e8\u00ec\u00f9

is it right this change in my char?

Thanks

 >> Stay informed about: json and special chars 
Back to top
Login to vote
Álvaro_G._Vicario

External


Since: Apr 10, 2008
Posts: 491



(Msg. 2) Posted: Mon Oct 31, 2011 5:26 am
Post subject: Re: json and special chars [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

El 31/10/2011 0:19, Sarah escribió/wrote:
> Hi! In my DB table I've chars like
>
> òèìù
>
> but when I generate json file I show
>
> \u00e0\u00f2\u00e8\u00ec\u00f9
>
> is it right this change in my char?

Yes, it is.


--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://borrame.com
-- Mi web de humor satinado: http://www.demogracia.com
--

 >> Stay informed about: json and special chars 
Back to top
Login to vote
Erwin Moller

External


Since: Aug 22, 2005
Posts: 81



(Msg. 3) Posted: Mon Oct 31, 2011 6:25 am
Post subject: Re: json and special chars [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 10/31/2011 9:31 AM, "Álvaro G. Vicario" wrote:
> El 31/10/2011 0:19, Sarah escribió/wrote:
>> Hi! In my DB table I've chars like
>>
>> òèìù
>>
>> but when I generate json file I show
>>
>> \u00e0\u00f2\u00e8\u00ec\u00f9
>>
>> is it right this change in my char?
>
> Yes, it is.
>
>

And read this:
http://www.joelonsoftware.com/articles/Unicode.html

It is a great introduction to unicode.
From 2003(!).

Regards,
Erwin Moller



--
"That which can be asserted without evidence, can be dismissed without
evidence."
-- Christopher Hitchens
 >> Stay informed about: json and special chars 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Weird chars when parsing with SimpleXML - Hello, I'm using php-5.0.5-pl3; I've created a collector class which populates itself with DOM's nodes from every object which needs to output data. So, at the end of the process, the collector has every piece of the result in a XML document. Afte...

Special Characters - Hi! I'm trying to convert some XML into PHP, using xml_parse() and other PHP functions. When I convert, I loose special characters from my native language (Spanish), such as á, é, í, ó, ú and ñ. The result shows these characters as Ã, ñ, é ... Is....

Special characters - Hi! I'm trying to convert some XML into PHP, using xml_parse() and other PHP functions. When I convert, I loose special characters from my native language (Spanish), such as á, é, í, ó, ú and ñ. The result shows these characters as Ã, ñ, é ... Is....

Special Characters into database - Hi there guys, My doubt is, what's the best way of storing text into a mysql database, if the text has special characters.. imagine iso-8859-1. Should I convert the text using htmlentities and then put it into database, and later when I will retrieve i...

Delete multiple spaces and special characters - Is it possible to delete special caracters from a string and multiple spaces? When the input is : "a&*bbb cc/c d!d" I want the result : "abbb ccc dd" thnx. MJ <?php $q = $_REQUEST['q']; $q = strip_tags($q); echo $q ?&g...
   Database Forums (Home) -> PHP All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]