Link to home
Start Free TrialLog in
Avatar of CE101
CE101

asked on

[HTML] Webpage containing Hebrew characters not displaying properly

The webpage in question, when it resides locally on my computer, displays nicely. However, when it resides on my website, it does not display properly in Firefox, IE and Chrome. I called the hosting company and they too see the same thing I do using the same 3 browsers.

Actually the Hebrew itself displays fine, however wrapped around each line of Hebrew text are two or three lines of high-order characters.

You can see what I mean in the attached screenshots:
    ScreenShot_FileLocal.jpg
    ScreenShot_FileOnServer.jpg
 

The first few lines of HTML code are as follows:
<!DOCTYPE html> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<html lang="he">  
<body dir="rtl">
<center><font face="David" size="2">ספר</font></cente<wbr ></wbr>r>
<b><center><font face="David" size="7">קן קולמוס</font></center></b><wbr ></wbr>
<center><font face="David" size="1"></font></center>
<b><center><font face="David" size="4">מחקרים ועיונים בסוגיות הש'ס</font></center></b>

Open in new window



Any suggestions would be greatly appreciated.

Gary
ScreenShot-FileLocal.jpg
ScreenShot-FileOnServer.jpg
Avatar of Frank Helk
Frank Helk
Flag of Germany image

Hmmm - the code snippet looks correct that far ... since the hebrew text itself (which I don't understand) seems to be rendered OK, using hebrew text seems not to be the main part of the problem - I would suspect some delicate coding problem in the HTML code around it.

I don't know how the formatting (which seems to be broken) is done, and if the page is static or generated on the fly.

On the other side, the use of the non-standard font may trigger something in the web server trying to circumvent language problems .. and that attempt fatally fails.

A hint (which I can't try tue to missing data): Use WGET on both computers to fetch the HTML code as it comes from the server. Try WinMerge to compare the two files. Check if the differences could affect the page formatting.

If unsure, post both results an let me have a look at.
ASKER CERTIFIED SOLUTION
Avatar of CE101
CE101

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial