Received: by 10.180.100.161 with SMTP id ez1mr823968wib.3.1329342265439; Wed, 15 Feb 2012 13:44:25 -0800 (PST) X-BeenThere: mongodb-user@googlegroups.com Received: by 10.180.104.5 with SMTP id ga5ls4785wib.0.canary; Wed, 15 Feb 2012 13:44:06 -0800 (PST) Received: by 10.216.135.100 with SMTP id t78mr1338036wei.2.1329342246746; Wed, 15 Feb 2012 13:44:06 -0800 (PST) Received: by 10.216.135.100 with SMTP id t78mr1338035wei.2.1329342246731; Wed, 15 Feb 2012 13:44:06 -0800 (PST) Return-Path: Received: from mail-ww0-f45.google.com (mail-ww0-f45.google.com [74.125.82.45]) by gmr-mx.google.com with ESMTPS id u8si2843283wiy.3.2012.02.15.13.44.06 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 15 Feb 2012 13:44:06 -0800 (PST) Received-SPF: pass (google.com: domain of c...@talis.com designates 74.125.82.45 as permitted sender) client-ip=74.125.82.45; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of c...@talis.com designates 74.125.82.45 as permitted sender) smtp.mail...@talis.com Received: by mail-ww0-f45.google.com with SMTP id dt12so1167714wgb.26 for ; Wed, 15 Feb 2012 13:44:06 -0800 (PST) Received: by 10.180.8.226 with SMTP id u2mr15991118wia.16.1329342246620; Wed, 15 Feb 2012 13:44:06 -0800 (PST) Return-Path: Received: from [192.168.1.72] (robotrobot.plus.com. [84.92.248.217]) by mx.google.com with ESMTPS id dw7sm36247840wib.4.2012.02.15.13.44.05 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 15 Feb 2012 13:44:06 -0800 (PST) From: Chris Clarke Content-Type: multipart/alternative; boundary=Apple-Mail-35-995178362 Subject: Unicode EN Dash character + php driver Date: Wed, 15 Feb 2012 21:43:32 +0000 Message-Id: <76912F3C-27EF-471B-81CC-3E585B476F38@talis.com> To: mongodb-user@googlegroups.com Mime-Version: 1.0 (Apple Message framework v1084) X-Mailer: Apple Mail (2.1084) X-Gm-Message-State: ALoCoQlSRVGAvaVDh4QTyMkaa7vf/wZ5+Wghl8PMfZiiEbJaTObTJhdmNTJeK+L4cl5+MOHZOTiE --Apple-Mail-35-995178362 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 I have some data in a mongo document that includes the EN DASH Unicode = character (http://www.fileformat.info/info/unicode/char/2013/index.htm).=20= When queried via the mongo shell I have something like this: { _id: "someid", title: "Semiconductor Physics and Devices (2011/12 =96 Semester = 1)" } However, using the php driver, when I query this string and print_r the = result I am getting: ( [_id] =3D> someid [title] =3D> Semiconductor Physics and Devices (2011/12 \u2013 = Semester 1) ) I feel like I am doing something very obviously wrong here... Chris= --Apple-Mail-35-995178362 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252 I = have some data in a mongo document that includes the EN DASH Unicode = character (http:= //www.fileformat.info/info/unicode/char/2013/index.htm). 
When queried via the mongo shell I have something like = this:

{
= _id: "someid",
title: "Semiconductor Physics and = Devices (2011/12 =96 Semester 1)"
}

However, using the = php driver, when I query this string and print_r the result I am = getting:

(
        [_id] =3D> = someid
        [title] =3D> = Semiconductor Physics and Devices (2011/12 \u2013 Semester = 1)
)

I feel = like I am doing something very obviously wrong = here...