GenoPro Home
GenoPro Home  |  Get Started With My Genealogy Tree  |  Buy  |  Login  |  Privacy  |  Search  |  Site Map
 

GenoPro Support Forum




Change the HTML Encoding from UTF-8 to ISO-8859-1

Click to view RSS...
Author Changing html encoding of web publishing
Posted Wednesday, April 16, 2008 - Post #21392
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.1.0.1

Last Login: 2 days ago @ 9:23 PM
Posts: 3,464, Visits: 26,854
OK, back to basics

GenoPro's Report Generator producing the standard English Narrative Report generates HTML files in UTF-8 encoding.

If you want your generated home.htm file to contain ISO-8859-1 encoded characters then you muist re-encode this file as well as telling browsers rendering this file via the 'http-equiv' 'Content-Type meta tag.

So one way to achieve this is simply edit the home.htm file using Windows Notepad replacing

<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

with
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>

AND THEN SAVE THE FILE AS 'ANSI' (see 'Encoding' drop down list in Notepad's 'Save As' dialogue). This will work provided the utf-8 characters used are limited to the ISO-8859-1 subset of ANSI. You can then edit this file with your ISO-8859-1 editor to your heart's content.

As I see it, this is entirely independent of the web server. The server should not be generating the pages, but merely serving them 'as is' as so the encoding is transparent.


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Posted Wednesday, April 16, 2008 - Post #21383
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Forum Members
FamilyTrees.GenoPro.com
GenoPro version: 2.5.3.8

Last Login: Wednesday, October 3, 2012
Posts: 7, Visits: 37
The reason is already stated in the beginning of this tread, my web editor does not support well utf-8, so the web site use iso. Because this parameter is defined on the web server, it doesn't work to have a mix of ISO and UTF pages. All pages works wells in ISO except this home.htm. Any info about why configuring this page to ISO doesn't work as for the other pages?
Posted Thursday, April 10, 2008 - Post #21350
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Moderators
Customers
Gamma
FamilyTrees.GenoPro.com
Translator
GenoPro version: 3.1.0.1

Last Login: Tuesday, October 28, 2025
Posts: 4,886, Visits: 22,799
jcguasp (4/1/2008)
In your post 21238, you said you 'put it back to UTF-8'. But did you save home.htm as Utf-8? With Notepad:

Saving to UTF-8 has little to do, because GenoPro will load the HTML template and convert it to Unicode internally.  What is necessary is to specify the encoding of the output with:

<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>


Edited: Thursday, April 10, 2008 by GenoProSupport
Posted Thursday, April 10, 2008 - Post #21349
Forum Master

Forum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum Master

Gamma
Moderators
Administrators
FamilyTrees.GenoPro.com
Customers
GenoPro version: 3.1.0.1

Last Login: Monday, May 12, 2025
Posts: 952, Visits: 10,077
I'm wondering why would you want to move away from unicode standard utf-8 and get a non-universal iso codepage that limits you in many ways?

Edited: Thursday, April 10, 2008 by GenoProSupport
Posted Thursday, April 10, 2008 - Post #21348
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Forum Members
FamilyTrees.GenoPro.com
GenoPro version: 2.5.3.8

Last Login: Wednesday, October 3, 2012
Posts: 7, Visits: 37
The goal here was to replace utf by iso, so putting back home.htm on utf doesn't make it!?
Posted Tuesday, April 1, 2008 - Post #21245
Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

Important Contributors
FamilyTrees.GenoPro.com
Customers
Translator
GenoPro version: 2.0.1.6

Last Login: Tuesday, December 16, 2008
Posts: 390, Visits: 1,271
To cbetant:
In your post 21238, you said you 'put it back to UTF-8'. But did you save home.htm as Utf-8? With Notepad:

Also, beside the sub, you're not using my last Dic Rev. Download it from here:

   http://support.genopro.com/FindPost21080.aspx

and you'll then get proper Family phrases (without 'True' as it refered to an old parameter).

JC

Posted Tuesday, April 1, 2008 - Post #21244
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Moderators
Customers
Gamma
FamilyTrees.GenoPro.com
Translator
GenoPro version: 3.1.0.1

Last Login: Tuesday, October 28, 2025
Posts: 4,886, Visits: 22,799
By the way, Unicode and UTF-8 are the same.  UTF-8 stands for Unicode Transformation Format, which is a method for encoding / compressing Unicode characters.

Edited: Tuesday, April 1, 2008 by GenoProSupport
Posted Monday, March 31, 2008 - Post #21239
Forum Master

Forum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum Master

Customers
Important Contributors
FamilyTrees.GenoPro.com
Translator
GenoPro version: 3.1.0.1

Last Login: Sunday, March 21, 2021
Posts: 716, Visits: 12,927
Had a look at your home.htm page and it shows some garbled characters due to code setting (ISO), if I set my encoding to Unicode everything shows correct. This was on Japanese Windows environment.

Edited: Tuesday, April 1, 2008 by GenoProSupport
Posted Monday, March 31, 2008 - Post #21238
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Forum Members
FamilyTrees.GenoPro.com
GenoPro version: 2.5.3.8

Last Login: Wednesday, October 3, 2012
Posts: 7, Visits: 37
I've put it back to UTF-8 and still the same issue. Any content in UTF-8 doen't display properly as the server is setup for ISO.
Posted Monday, March 31, 2008 - Post #21225
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Moderators
Customers
Gamma
FamilyTrees.GenoPro.com
Translator
GenoPro version: 3.1.0.1

Last Login: Tuesday, October 28, 2025
Posts: 4,886, Visits: 22,799
cbetant (3/31/2008)
Right except what is related to home.htm

Exactly.  This is because the encoding for home.htm is the following:

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>

If home.htm was encoded in UTF-8, everything would display fine.



Similar Topics

Click to view RSS...
Expand / Collapse

Reading This Topic

Expand / Collapse