>NS_MsgHashIfNecessary() then converts the input C string to nsAUtoString before
>calling NS_MsgHashAutoStringIfNecessary().
This is done by AssignWithConversion as I mentioned in my last comment This may
lose the data because it just casts instead of applying charset conversion. I
think utility like ConvertToUnicode() can be used there to convert to unicode
from the OS charset. If the conversion fails then the name needs hashing.
>NS_MsgHashIfNe cessary( ) then converts the input C string to nsAUtoString before tringIfNecessar y(). rsion as I mentioned in my last comment This may
>calling NS_MsgHashAutoS
This is done by AssignWithConve
lose the data because it just casts instead of applying charset conversion. I
think utility like ConvertToUnicode() can be used there to convert to unicode
from the OS charset. If the conversion fails then the name needs hashing.