I have to encode a file name in javascript. File name is expected to have any unicode characters.
For example "####新奥尔良路易斯安那 ~`!@#$%^&()_-=+}]{[;.,.doc"
If I assign this to Iframe src then some meta characters are getting encoded. Like '#' is encoded as '%25'. Chinese char remain as it is.
Therefore I cannot use escape(filename) because it is aswell encoding chinese chars, hence the file not found exception is thrown.
I want to selectively escape characters like only key board non alpha numeric? Is there any way to find only keyboard non alpha numeric values from a regular experssion?
Any help will be much appreciated.
Thanks in Advance,
Naga.