iOS到PHP错误的编码(非英语成为乱码)

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.

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.