From: Sassy N. <sa...@gm...> - 2023-06-16 19:02:56
|
Hi Group, I'm facing an issue on my new Ubuntu 22.04 installation with NaviServer/ 4.99.25. First here is the code of my adp page: <html> <meta charset="utf-8"> <body> encoding system:<%=[encoding system]%><br> text utf-8 שליחת מייל <br> function encoding convertfrom utf-8 : <%=[encoding convertfrom utf-8 "\שלח למייל"]%> <br> </body> </html> In NaviServer/4.99.16 everything is working as expected. However in NaviServer/4.99.25 the encoding convertfrom utf-8 is somehow broken. [image: image.png] I have check the locate setting in both servers and they are the same: LANG=en_US.UTF-8 LANGUAGE= LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8" LC_ALL= The naviserver in both server print this on the load: *[-main:conf-] Notice: initialized locale en_US.UTF-8 from environment variable LANG[16/Jun/2023:18:51:58][854016.7f8dc402af80][-main:conf-] Warning: config mimtypes: redefine predefined mime type for .adp value 'text/html' with different value: text/html; charset=UTF-8[16/Jun/2023:18:51:58][854016.7f8dc402af80][-main:conf-] Debug: encoding: loaded: utf-8* I also run curl to check the headers: HTTP/1.1 200 OK *Server: NaviServer/4.99.25* Date: Fri, 16 Jun 2023 18:53:45 GMT Set-Cookie: ad_browser_id=414419283; Path=/; Expires=Fri, 01-Jan-2010 01:00:00 GMT Set-Cookie: ad_session_id=414419284,0,c4rYRb4RyIH2tMMORokgBz44T0g9U6XF,1686941625; Path=/; Max-Age=14400 Content-Type: text/html; charset=UTF-8 Expires: now Content-Length: 0 Connection: keep-alive HTTP/1.1 200 OK *Server: NaviServer/4.99.16* Date: Fri, 16 Jun 2023 18:47:05 GMT Set-Cookie: ad_browser_id=622810778; Path=/; Expires=Fri, 01-Jan-2010 01:00:00 GMT Set-Cookie: ad_session_id=622810779,0,P9pbnqGCncOosO.v5xKMTLosjbGdyLQs,1686941225; Path=/; Max-Age=14400 Content-Type: text/html; charset=UTF-8 Expires: now Content-Length: 0 Connection: keep-alive Running the command in a local tclsh gives the same output so I don't think it is a tcl8.6 issue. tclsh % encoding convertfrom utf-8 "שלח למייל" éÜ× ÜÞÙÙÜ % The *Server: NaviServer/4.99.25 is running * tcl 8.6.12+dfsg vs *Server: NaviServer/4.99.16 tcl * 8.6.8+dfsg-3 One more thing to note is that the log file which also has UTF-8 characters is not translated. I see the escape characters instead of the data. Any ideas? What am I missing? Both servers run the same naviserver configuration. I have build the naviserver as a debing pkgs - I can share the code if needed: [image: image.png] -- Regards, Sassy Natan 972-(0)54-2203702 |