I don't understand your question,( please be more specific ),
but from what I can tell you must use the same encoding,
ie if input is UTF-8, you must make sure that your processing
also take place using UTF-8 as input! Mabye you need to convert first
from utf-8 to another NameSpace ? ( utf-16 (wideschar) .. not really sure it exists )