Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Multi-lingual support for Jakarta Common FileUpload

 
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I would like to ask how FileUpload support multi-lingual.

I use it as the upload utility for my system. When I upload a file with file name in chinese characters (which is Big5 encoding), the filename returns by the FileItem are all as the format of &#nnnnn;.

Thus, are there any ways that I can convert those &#nnnnn; characters back into the chinese characters?

Thanks.

Nick
 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The format you are getting is unicode. I'm not sure of what your intension is with the display of the filename. Check on how your browser (which must have the display capabilities for Chinese unicode characters) displays the filename (say if your application displays it thereafter) to see if the unicode representation of the name matches the filename initially sent in.
Otherwise, here's a forum on converting unicode to big5.
Java Technology Forum - Convert unicode to hex(Big5 Hex)
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic