Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

encoding issue for French

 
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am working on a application which use Strtus 1.3. The server part needs UTF-8 encoding, so I needs to do some changes.

I added the

<%@page contentType="text/html" pageEncoding="UTF-8"%>

to jsp pages.

Then I fill the form on the jsp page in French, one of the value from calendar is “Aoû 3 1989”, but when I submit the request, I checked the form in the action and found the value has been changed to "Aoû 3 1989", three letter changed to four letters, which will not be accepted by the server. I am wondering the reason of it, could anyone help to analyze the issue? And what should I do to solve the problem?

Thanks.
 
Marshal
Posts: 25823
69
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This article is several years old now but it describes your problem quite well: Character Conversions from Browser to Database.
 
david arnold
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Cool, thanks for the help! I will check it.

Regards,
 
We cannot change unless we survive, but we will not survive unless we change. Evolving tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic