addressalign-toparrow-leftarrow-rightbackbellblockcalendarcameraccwcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-checkcircle-with-crosscircle-with-pluscrossdots-three-verticaleditemptyheartexporteye-with-lineeyefacebookfolderfullheartglobegmailgooglegroupshelp-with-circleimageimagesinstagramlinklocation-pinm-swarmSearchmailmessagesminusmoremuplabelShape 3 + Rectangle 1ShapeoutlookpersonJoin Group on CardStartprice-ribbonShapeShapeShapeShapeImported LayersImported LayersImported Layersshieldstartickettrashtriangle-downtriangle-uptwitteruserwarningyahoo

Working with Foreign Characters

From: Bryan
Sent on: Tuesday, September 28, 2010 4:45 PM
Hello all,

Ive got quite a problem and I am not sure how best to solve it.

I am reading a text file with various information in it.  Thats
working quite well, but I am reading alot of foreign characters.
For example: Du��an Sladi��  is an example name.

When I echo this information back out, it comes up extremely broken.
I was able to use the cli and issue iconv to convert the file encoding
to iso[masked] and then  in the code pull it using utf-8.  However,
this method is extremely cumbersome plus, I cant seem to get it
working again.  In my browser that name would show up "Du����an M.
Sladi�����".

Ive tried a couple different things, and am curious if there better
ways then a maze of conversions, encoding and re-encoding.

Thanks,
Bryan

Our Sponsors

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy