ISO-8859-2 multiple browsers issue

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
e1
Posts: 3
Joined: Tue Dec 14, 2004 9:10 pm

ISO-8859-2 multiple browsers issue

Post by e1 »

Hi all,

please help me with this issue. I am using latest textPad version and till now I did not have any problems except some with UTF-8 and my CE encoding but it was fixed.

However, I don't know how should I be saving files so that html pages render my Croatian (East Europeian) encoding. I've tryed saving it for PC as ANSI, Unicode and UTF-8, but when page viewed in IE or Firefox I get always strange results except PC:ANSI which worked fine in IE.

When I reopened page in Dreamweaver, fixed errors and saved it from there - it showed in both browsers correctly with wanted codepage.

While I was using Windows-1250 codepage, these errors didn't occure, but I need to move to new to be standard: ISO-8895-2

Any help with this issue please?
bveldkamp

Post by bveldkamp »

What kind of "strange results"?

Do you have something like this in your html:

Code: Select all

<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">
</head>
or

Code: Select all

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
Also, the font that's used by IE and Firefox should contain the glyphs you use; Arial is a safe choice, at least on Windows, use "charmap.exe" to check this.
e1
Posts: 3
Joined: Tue Dec 14, 2004 9:10 pm

Post by e1 »

yes, I have meta tag with iso-8859-2. I am not sure I can use utf-8 - it didn't produce good results with my codepage (or I don't know how to use it)

strange results is fe. that letter 'č' (c with ˇ) is once replaced with strange characters: ae(&aelig;), AL depending on the way I've saved document

font safe and it is Courier. Because, when same page has been corected and saved from Dreamweaver it shows correctly in both browsers
bveldkamp

Post by bveldkamp »

Same here, after some more testing.

What I did was:
Create a new file
Set "Script" to "Central European"
Enter some characters, i.e. ćĆ čČ đĐ Å¡Å  žŽ
Save as Ansi, Result: æÆ èÈ ð� šŠ žŽ
Apparantly Script is reset to "Western" => set it to "Central European" again and you're fine.

Do the same, but save as UTF, everything seems fine, until you reopen the file: TP gives this warning

Code: Select all

"Warning: "document" contains characters that do not exist in code page 1250 (ANSI Latin I). They will be converted to the system default character, if you click OK"
Pretty lame, I'd say.

When I view the ansi file in IE/FF, some characters display as either question marks or boxes, my guess is there's a difference between the Central European codepage that Windows uses and the iso standard.
So, if you save as Ansi, use "charset=cp1250" in the meta tag and you're fine. Oh wait, that was exactly your point...

Seems to me you'll have to use UTF after all. Unfortunately TP is not the best utf editor around, to say the least, even Notepad (on XP/2000) does a better job in this respect, but there are others as well. Google is your friend.

HTH
bveldkamp

Post by bveldkamp »

e1
Posts: 3
Joined: Tue Dec 14, 2004 9:10 pm

Post by e1 »

tnx bveldkamp :)
ceric
Posts: 6
Joined: Wed Dec 29, 2004 8:24 pm
Contact:

Neat

Post by ceric »

Thanks for the URL - pretty useful editor
Post Reply