• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

corrupt Japanese characters in excel

 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
I am having a strange problem when display Japanese characters in excel.
I am setting the ContentType using setContentType("application/vnd-ms.excel; charset=Shift_JIS");
It seems that If I display only a few words then excel does not display the characters correctly, but If I display about 15 or over words then the characters are displayed fine.
Anyone have any idea why this is happening?
Thanks.
Richie
 
Richard Bradford
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In case anyone is interested, the fix was to set both the contentType AND include <meta http-equiv="Content-Type" content="application/vnd.ms.excel; charset=Shift_JIS"> in the html output.
[ May 10, 2004: Message edited by: Richard Bradford ]
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic