• 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
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

Encoding error on JavaEE with glassfish and mariadb

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
I have a problem with encoding on Glassfish 4.

In fact all my accents coming from the BDD are replaced by?
Yet locally, on Netbeans 11 and Tomcat it works very well.

The connection link to the BDD is:



So I have already created in the directory WEB-INF / the file glassfish-web.xml with as content the following:



I am already out of ideas.

thank you for helping me
 
Bartender
Posts: 1316
39
IBM DB2 Netbeans IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What is BDD?
 
Wilfried Nziwoue
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
mariadb  Ver 15.1 Distrib 10.4.7-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2
 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I see it says UTF-8 but the machine differences in OS default code pages may be the trouble if one is UTF_16 Unicode given there are minor differences between the three major Java 8 bit encodings UTF-8 ISO_8859_1 or a standard windows ASCII compliment chart, that often leaves the question mark symbol in English codes not meshing properly.

However, you mentioned X64 compile , so different file tabling of machines would also be a compounding effect.
Also in a DB check the coding and default coding of the tables and columns for custom setting

To give you an idea of encodings in Java here's one of my systems reEncodechars method and doc
https://www.scribd.com/document/472437350/javax-servlet-Ramfile-Javadoc
https://www.scribd.com/document/470554983/javax-servlet-Ramfile-Interface-and-org-apache-catalina-core-RAMfileArray
 
Samuel Marchant
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Another point, by protocol the request may be required to be urlencoded first.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic