<p>I have a std::string with UTF-8 characters in it.<br>
I want to convert the string to its closest equivalent with ASCII characters.</p>

<p>For example:</p>

<p>Łódź  =>  Lodz<br>
Assunção  =>  Assuncao<br>
Schloß  =>  Schloss</p>

<p>Unfortunatly ICU library is realy unintuitive and I haven't found good documentation on its usage, so it would take me too much time to learn to use it. Time I dont have.</p>

<p>Could someone give a little example about how can this be done??<br>
thanks.</p>

I don't know about ICU but ICONV does this and its quite easy to learn. it's only about 3-4 calls and what you need in your case is to use the
```
ICONV_SET_TRANSLITERATE
```
flag using
```
iconvctl()
```
.