Monday, April 8, 2002 05:56 AM
I use FileOutputStream to create a file in Windows2000 OS(English Version) in servlet. But this OS support GBK charset and its default locale is set Traditional Chinese/Taiwai. I fill in Simplied Chinese string as filename in web browser, It post data as "UTF-8" and in server ,I get parameter as "UTF-8" string correctly.But when use FileOutputStream to create a new file in OS file system, FileNotFoundException occurs, it says "file name syntax is incorrect".But if I set default locale Simplied Chinese and fill in Tranditional Chinese string as file name,no problem.Why? Please help me!!!