Question: I've got this flash/flex application and issue with `URLRequest` call. When call is made to server I get content just fine. After that content is stored in cache and next time URLRequest uses local cache to retrieve it. **Sometimes it works, but sometimes call is never finished - stays in pending**. I'm using latest flash player and different browsers. On my computer I can replicate issue using chrome and colleague can replicate on firefox. I've looked at flash player log files and there's nothing different when call is successful and when call stays in pending ...

Also my friend couldn't replicate this issue until he upgraded flash player to latest version.

I believe this isn't a server-side issue because web server logs says there's no request at the time of the issue and network tool in google chrome confirmed that that time request is using local cache.

Currently I've resolved this by forcing client not to use cache using expiration date and no-cache, but I would like to use cache and I would like to understand why this happens.

Thanks a lot!

Responsible code:

```
loader = new utils.URLLoader();
loader.dataFormat = flash.net.URLLoaderDataFormat.BINARY;
loader.addEventListener(flash.events.Event.COMPLETE, this.onLoad);
loader.addEventListener(flash.events.IOErrorEvent.IO_ERROR, this.onErr);
loader.load(new flash.net.URLRequest(URL));

```

---

update:

Now I found out that cache isn't resposible for it. I've cleaned cache every time before a request and still I can reproduce this error. GET request is still displayed as pending, but this time I got wireshark running which shows interesting result - troubled GET request isn't logged in wireshark. How can this be possible?

Answer: 
`std::string` is capable of storing UTF-8 directly. You will need special libraries, like ICU, only if you want to parse strings in some way. For a simple output without parsing, just go with `std::string` and forget about all those libraries.
Alternative lib: [Iconv](http://www.gnu.org/software/libiconv/)

Size: about 900kb (which is smaller in APK)