Question: what is the easiest way to get in both cases the same result of 7?
How do I access character 2 of str1, which seems to be represented with 2 chars?
That's depend on the encoding. I guess the above is UTF-8 ( which has variable length for non-ASCII characters )
You can determine the length of each character based on the first few bits of the first byte: http://en.wikipedia.org/wiki/UTF-8#Design
If you just want to deal with umlauts (and/or other western europe special characters) you might switch to ISO 8859(-15). There any character represents one byte.