Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Unicode EN Dash character + php driver
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Chris Clarke  
View profile  
 More options Feb 16 2012, 9:50 am
From: Chris Clarke <c...@talis.com>
Date: Thu, 16 Feb 2012 06:50:47 -0800 (PST)
Local: Thurs, Feb 16 2012 9:50 am
Subject: Re: Unicode EN Dash character + php driver
That doesn't smell right.

This data is put in (via the PHP driver) using UTF-8 by json_encoding
the document before inserting. This stores it in DB as UTF-8.

Are you saying the php driver (which one can only assume is doing a
json_decode) is then converting to Unicode?

By the way echo'ing out the value (rather than using print_r) has the
same result.

Chris

On Feb 16, 5:32 am, Andreas Jung <li...@zopyx.com> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1

> Chris Clarke wrote:
> > ( [_id] => someid [title] => Semiconductor Physics and Devices
> > (2011/12 \u2013 Semester 1) )

> What else do you expect? The string is likely returned represented as
> unicode string in PHP (I am not a PHP guru) and displayed using print_r
> using its *internal* represenation. That's what print_r is for. You need
> to convert it to UTF-8 of course to render it in "human-readable" form.

> - -aj
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.11 (Darwin)
> Comment: Using GnuPG with Mozilla -http://enigmail.mozdev.org/

> iQGUBAEBAgAGBQJPPJUGAAoJEADcfz7u4AZjiuALvAy74lOzvLPtIV943wPXanyg
> pylobFnpyEqJ2+v6TdyI5Qh5EiEV9UCPrUheFOFMTEqB2PO08p0InvSADKN3iI6D
> WVHXDCf7DonQR4D0d2sx+L+30JfKfOLeMz4uaipQnPwQMkFppKmUqq6G5wlThyD9
> Ro3ls0bSvKofBBYa9P8uDa/SrPXUVBWRq4fppRgvO1fG/7j36vV7+G06ayJTMrch
> fH6GWOLZMbP9uMrv4Kne+AbETJjTM2JlCbtWVAZLBBfBoZYOu9yDLOna8Xk+29bl
> bfEBocdgCZlEKVWgmachEb27mDVIPJXTVhHE8nz3LIoLd1ZtTJTWt09+XNmfCeF1
> vfMrsnn6wh2ZpOEnKh6qcNB6mJ5+jW1KSHgqCmrVGfORdzDt3E3reQ2pZqfqJRQ0
> RjMvYk4F3Ro5pKHJuyjpJa6jpCFpwADXbjBZJ2w2saoSnP/6sHdYazfFEP1rErvC
> CCO3NtakSk6eSyJEqympUcoYqQIx5RA=
> =Qcae
> -----END PGP SIGNATURE-----

>  lists.vcf
> < 1KViewDownload


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.