shay
shay

Reputation: 31

iOS to PHP wrong encoding (non english becomes gibberish)

I ran into a problem communicating between an iphone app and my php server.

The problem shows when I send non english characters via a post request. The english data is OK but the non english looks like this: מכללת ×ורות ישר×ל when the server recieves it.

What could be the problem? I am using the ASI library for the request.

Upvotes: 1

Views: 146

Answers (1)

Randall
Randall

Reputation: 14849

make sure you're using unicode encoding on both the iPhone and the server. I believe that NSString is unicode by default so I would guess that you're converting to ansi on the server and that's what is causing the problem.

Upvotes: 1

Related Questions