A
Atara
I have a file path that contains unicode characters.
e.g: "C:\vs2003\OutputDir???\mc_data\"
I want to translate this string to HTML with unicode characters:
e.g: "C:\vs2003\OutputDirאבג\data\"
I tried
strPath = System.Web.HttpUtility.HtmlEncode(strPath)
but it did not work.
I suppose I can create bytes from strPath and if I get (ascii > 127)
then replace "charVal" with "&charVal;"
but I am looking for a function that already does this algorithm...
any suggestions?
Thanks,
Atara
e.g: "C:\vs2003\OutputDir???\mc_data\"
I want to translate this string to HTML with unicode characters:
e.g: "C:\vs2003\OutputDirאבג\data\"
I tried
strPath = System.Web.HttpUtility.HtmlEncode(strPath)
but it did not work.
I suppose I can create bytes from strPath and if I get (ascii > 127)
then replace "charVal" with "&charVal;"
but I am looking for a function that already does this algorithm...
any suggestions?
Thanks,
Atara