|
|||
| Moderated by: Renate.Reinartz, Markus.Kreisel, Jaakko.Salmenius, Ilkka.Salmenius |
|
|||||||||||||
| Accents incorectly displayed - Usage - Three simple steps to localize - Technical Support (You need to be registered at the forum to write) - Localization Tool for VB, Delphi, .NET, C#, VB.NET, XML, Online Help, HTML ... | ||||||||||||||
| Author | Post | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
||||||||||||||
|
Rajesh Member
|
Hi, I am translating a page from English to french. The code for the original page is: <%_(at)_ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb" Inherits="TestProject.WebForm1"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <title>WebForm1</title> </HEAD> <body> <form> <asp:Label id="Label1" runat="server" Width="88px">Name Details</asp:Label></TD> </form> </body> </HTML> The page generated by Sisulizer is: <%_(at)_ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb" Inherits="TestProject.WebForm1"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <meta http-equiv="Content-Language" content="fr"><!-- by Sisulizer --> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"><!-- by Sisulizer --> <title>WebForm1</title> </HEAD> <body> <form> <asp:Label id="Label1" runat="server" Width="88px">Détails nommés</asp:Label></TD> </form> </body> </HTML> When I run this page "Détails nommés" is displayed as "Détails nommés". I am using version 1.6.0.
|
|||||||||||||
| ||||||||||||||
| ||||||||||||||
|
Ilkka.Salmenius Administrator
|
1. Your server doesn't regonize UTF-8 encodings. You have to check those. Run your page and show the source in your WEB browser to check what kids of characters your server gives. 2. Or you can force Sizulizer to write ANSI text Take a look at this picture regards Ilkka Attachment: Encoding.PNG (Downloaded 26 times) Last edited on Thu Aug 23rd, 2007 11:56 am by Jaakko.Salmenius ____________________ http://www.sisulizer.com - Three simple steps to localize |
|||||||||||||
| ||||||||||||||
|
||||||||||||||
|
Rajesh Member
|
When the same characters are in the server-side code then sisulizer translates these correctly. The source in the Web Browser is ..................................................................................................................................................................... <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <meta http-equiv="Content-Language" content="fr"><!-- by Sisulizer --> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"><!-- by Sisulizer --> <title>WebForm1</title> </HEAD> <body> <form name="Form1" method="post" action="WebForm1.aspx" id="Form1"> <input type="hidden" name="__VIEWSTATE" value="dDwtNjA2MTkwMTQ5O3Q8O2w8aTwxPjs+O2w8dDw7bDxpPDM+Oz47bDx0PHA8cDxsPFRleHQ7PjtsPETDqXRhaWxzIG5vbW3DqXM7Pj47Pjs7Pjs+Pjs+Pjs+dUfeuEWyEkZxtOwXBKJH1qMxIEw=" /> <span id="Label2" style="width:136px;">Détails nommés</span> <br> <span id="Label4" style="width:112px;">Détails nommés</span> </form> </body> </HTML> .................................................................................................................................................................. Here I set the text of Label2 in .aspx page and the text of Label4 in .aspx.vb page.
|
|||||||||||||
| ||||||||||||||
| ||||||||||||||
|
Rajesh Member
|
Hi, Do you have any update for me?
|
|||||||||||||
| ||||||||||||||
|
||||||||||||||
|
Jaakko.Salmenius Administrator
|
1.6.6 is still under testing. We will release it as soon as it has been properly tested. One or two more days. Jaakko
____________________ http://www.sisulizer.com - Three simple steps to localize |
|||||||||||||
| ||||||||||||||
| ||||||||||||||
|
Rajesh Member
|
This will work fine in 1.6.6? That's good.
|
|||||||||||||
| ||||||||||||||
|
||||||||||||||
|
Ilkka.Salmenius Administrator
|
Rajesh wrote: This will work fine in 1.6.6? That's good. The problem is not in Sisulizer, but perhaps in your WEB server. It can't handle UTF-8 encoding. Sisulizer uses UTF-8 encoding by default. 1. UTF-8 - You have a translation "Détails nommés" in the sheet of Sisulizer - By default Sisulizer writes it "Détails nommés" to the HTML file. It will add: <meta http-equiv="Content-Type" content="text/html; charset=utf-8"><!-- by Sisulizer --> to tell the browser that this page uses UTF-8 encodings. Now the browser can show "Détails nommés" instead of "Détails nommés". But in your case the server can't handle UFT-8 encoding. You should modify your sever parameters or 2. Force Sisulizer to write ANSI characters (see the picture above in this thread) After that "Détails nommés" will be written "Détails nommés" to the HTML file. best regars Ilkka Last edited on Fri Sep 7th, 2007 10:00 am by Ilkka.Salmenius ____________________ http://www.sisulizer.com - Three simple steps to localize |
|||||||||||||
| ||||||||||||||
| ||||||||||||||
|
Rajesh Member
|
If I give the same characters directly in a .aspx page and do not use Sisulizer for translation then these characters are displayed correctly. And I use the same Web Server in both cases.
|
|||||||||||||
| ||||||||||||||
|
||||||||||||||
|
Ilkka.Salmenius Administrator
|
Rajesh wrote: If I give the same characters directly in a .aspx page and do not use Sisulizer for translation then these characters are displayed correctly. And I use the same Web Server in both cases. Yes, by default your server/bwoser uses western ANSI characters. If you translate directly english to frensh, there are no problem. Set Sisulizer to use ANSI characters (see picture earlier) with french and rebuild your pages. If it doesn't help. Read this. Sisulizer also adds some language/charset information into <head> section. <HTML> <HEAD> <meta http-equiv="Content-Language" content="fr"><!-- by Sisulizer --> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"><!-- by Sisulizer --> <title>WebForm1</title> </HEAD> Your sever can't perhaps use those. Try to remove them. Right click yor source and choose Properties... Attachment: Modify.PNG (Downloaded 11 times) Last edited on Fri Sep 7th, 2007 10:46 am by Ilkka.Salmenius ____________________ http://www.sisulizer.com - Three simple steps to localize |
|||||||||||||
| ||||||||||||||
| ||||||||||||||
|
Ilkka.Salmenius Administrator
|
Rajesh wrote: If I give the same characters directly in a .aspx page and do not use Sisulizer for translation then these characters are displayed correctly. And I use the same Web Server in both cases. Could you send one of your original .aspx file to me, please support (at) sisulizer.fi
____________________ http://www.sisulizer.com - Three simple steps to localize |
|||||||||||||
| ||||||||||||||
| Current time is 02:22 pm | |
| Localization Tool for VB, Delphi, .NET, C#, VB.NET, XML, Online Help, HTML ... > Technical Support (You need to be registered at the forum to write) > Usage - Three simple steps to localize > Accents incorectly displayed | |
Sisulizer software localization tool - Three simple steps to localize