Uniface User Forum

 View Only
  • 1.  UTF8 encoding not working correctly in web application

    Posted 07-08-2022 01:45
    Edited by Daniel Iseli 07-11-2022 03:02
    Hey guys,

    We have we have a web application that allows end users to maintain their personal details. Recently a user wanted to update their preferred name to 'Reneé' (note the accented character) but when saving this and the page refreshes, the following gets displayed: Reneé. I'm trying to track down why this is occurring.

    We also have a client-server application where we can also update this field. On my Windows computer I am able to enter 'Reneé' in both the web interface and client-server interface and everything works correctly. However, for a number of our customers we host our software on Amazon Web Services and it is here where we are encountering the issue.

    The AWS customers can also access the client-server application through a Citrix session and they are able to enter 'Reneé' here successfully, but when loading the record in the web application the bad characters still appear.

    We have checked the database (MSS) and the 'Reneé' is stored correctly (when saving the record through the client-server application). 
    We have put additional logging in the Uniface logs so that we can see the value after retrieval from the database (when using the web application) and the logs also show the correct character. 

    We set up an identically configured environment in both Windows and in AWS and the problem is only occurring in the AWS environment. So this sounds like this is an issue with Unix. Our current thinking is that something is going wrong between what the urouter is sending tomcat. We believe everything is set to UTF8 as far as we can tell.

    Has anyone else had an issue like this? particularly with running the app through AWS?
    Are there any Uniface settings we should be using for the Unix environment?

    We are on Uniface


    Julian Chilvers
    Aurion Corporation Pty Lt

  • 2.  RE: UTF8 encoding not working correctly in web application

    Posted 07-15-2022 03:09
    Hello Julian,

    Did you set these 2 settings in the asn file ?

    Stephane Pfefer
    Application Specialist

  • 3.  RE: UTF8 encoding not working correctly in web application

    Posted 07-22-2022 02:36
    Hi Stephane,

    Thanks for taking the time to reply.

    We've never actually used those settings in our ASN files before and never had issues with encoding. We've had some customers run our application in the past on Unix and they've never reported this issue either.

    But we've followed your suggestion and that appears to have fix the issue :).

    Thanks a lot!

    Julian Chilvers
    Aurion Corporation Pty Lt