Hey, I’m using php 5 and need to communicate with another server that runs completely in unicode. I need to convert every string to unicode before sending it over. This seems like an easy task, but I haven’t been able to find a way to do it yet. Is there a simple function that returns a unicode string? i.e. convert_to_unicode(“the string i’m sending”)
Share
Ok, iconv worked. The trouble is that this is a windows server, so I had to do it in little-endian. UTF-16LE works. Here’s the working code: