הוסטס - פורום אחסון האתרים הגדול בישראל

הוסטס - פורום אחסון האתרים הגדול בישראל (https://hosts.co.il/forums/index.php)
-   פורום תיכנות (https://hosts.co.il/forums/forumdisplay.php?f=14)
-   -   צריך עזרה בנוגע לעברית בHTML (https://hosts.co.il/forums/showthread.php?t=62214)

guycohen 22-04-08 13:43

צריך עזרה בנוגע לעברית בHTML
 
יש לי עמוד HTML ומוגדר בו הקידוד \ השפה UTF-8

זהו החלק העליון:
קוד:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<meta http-equiv="content-type" content="text/html; charset=UTF-8">
        <title>Untitled</title>
        <link href="style.css" rel="stylesheet" type="text/css">
        <script language="JavaScript" type="text/JavaScript">
                function load_content () {
                        if (parent.document.getElementById('main_div')) {
                                parent.document.getElementById('main_div').innerHTML=document.getElementById('inner_frame').innerHTML;
                        }
                        if (!parent.document.getElementById('main_div')) {
                        window.location=('index.html') ;
                        }
                }
        </script>
<style type="text/css">
.style1 {
        color: #000000;
}
</style>
</head>
<body onload="load_content()">
<div id="inner_frame">

כשאני נכנס לאתר אני רואה את העברית בריבועים כלומר כל אות ריבוע כזה ואין עברית
איך אפשר לסדר?

Daniel 22-04-08 13:46

ציטוט:

נכתב במקור על ידי guycohen (פרסם 626564)
יש לי עמוד HTML ומוגדר בו הקידוד \ השפה UTF-8

זהו החלק העליון:
קוד:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<meta http-equiv="content-type" content="text/html; charset=UTF-8">
        <title>Untitled</title>
        <link href="style.css" rel="stylesheet" type="text/css">
        <script language="JavaScript" type="text/JavaScript">
                function load_content () {
                        if (parent.document.getElementById('main_div')) {
                                parent.document.getElementById('main_div').innerHTML=document.getElementById('inner_frame').innerHTML;
                        }
                        if (!parent.document.getElementById('main_div')) {
                        window.location=('index.html') ;
                        }
                }
        </script>
<style type="text/css">
.style1 {
        color: #000000;
}
</style>
</head>
<body onload="load_content()">
<div id="inner_frame">

כשאני נכנס לאתר אני רואה את העברית בריבועים כלומר כל אות ריבוע כזה ואין עברית
איך אפשר לסדר?

*מנחש את שאר קוד הדף*
לא, אין בינינו טלפתיה. תוכל להביא את שאר קוד הדף?

guycohen 22-04-08 13:53

לא ידעתי שצריך הכל בכל אופן הנה כל הדף:
קוד:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<meta http-equiv="content-type" content="text/html; charset=utf-8">
        <title>Untitled</title>
        <link href="style.css" rel="stylesheet" type="text/css">
        <script language="JavaScript" type="text/JavaScript">
                function load_content () {
                        if (parent.document.getElementById('main_div')) {
                                parent.document.getElementById('main_div').innerHTML=document.getElementById('inner_frame').innerHTML;
                        }
                        if (!parent.document.getElementById('main_div')) {
                        window.location=('index.html') ;
                        }
                }
        </script>
<style type="text/css">
.style1 {
        color: #000000;
}
</style>
</head>
<body onload="load_content()">
<div id="inner_frame">
<table id="frame" cellpadding="0" cellspacing="0" border="0" align="center">
        <tr>
                <td valign="top" width="750" height="438" bgcolor="#FFFFFF" class="content">
                                                                <table cellpadding="0" cellspacing="0" border="0">
                                                                                                <tr>
                                                                                                        <td valign="top" width="7" height="438"></td>
                                                                                                        <td valign="top" width="240" height="438">
                                                                                                                <table cellpadding="0" cellspacing="0" border="0">
                                                                                                                        <tr>
                                                                                                                                <td valign="top" width="240" height="438"  style="background:url(images/1_bg1.gif) repeat-x top #393F3F">
                                                                                                                                        <table cellpadding="0" cellspacing="0" border="0">
                                                                                                                                                <tr>
                                                                                                                                                        <td valign="top" width="240" height="35">
                                                                                                                                                                <table cellpadding="0" cellspacing="0" border="0">
                                                                                                                                                                        <tr>
                                                                                                                                                                                <td valign="top" width="2" height="35"></td>
                                                                                                                                                                                <td valign="top" width="236" height="35" style="background-image:url(images/1_bg4.gif) "><div  style="margin:12 0 0 12px "><img src="images/2_w2.gif" alt="" border="0"></div></td>
                                                                                                                                                                                <td valign="top" width="2" height="35"></td>
                                                                                                                                                                        </tr>
                                                                                                                                                                </table>
                                                                                                                                                        </td>
                                                                                                                                                </tr>
                                                                                                                                                <tr>
                                                                                                                                                        <td valign="top" width="240" height="403" class="block5">
                                                                                                                                                                <div  style="margin:18 25 0 28px "><strong>USA</strong><br>
Sed perspiciatis unde omnis iste natus erroluptatem accusantium doloremque laudantiumes totamrem aperia eaque. ipsa quae ab illo inventore veritatis.
<br><br style="line-height:13px ">
<strong>Germany</strong><br>
Quasi architecto beataeae dicta sunt explicabo. Nemo enim ipsam volupta
tem quia voluptas sit aspernatur aut odit aut fugit sed quia consequuntur.
<br><br style="line-height:13px ">
<strong>Italy</strong><br>
Magni dolores eos qui ratione vosequi neeque porro quisquam est quiorem ipsum quia dolor sit amet,consectetur adipisci velit, sed quia non numquam.
<br><br style="line-height:13px ">
<strong>France</strong><br>
Tempora incidunt ut labore et dolgnam aliquam quaerat voluptm ad minimaam, quis ostrum exercita corporis suscipit laboriosammodi conseis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae.
</div>
                                                                                                                                                        </td>
                                                                                                                                                </tr>
                                                                                                                                        </table>
                                                                                                                                </td>
                                                                                                                        </tr>
                                                                                                                </table>
                                                                                                        </td>
                                                                                                        <td valign="top" width="2" height="438"></td>
                                                                                                        <td valign="top" width="493" height="438">
                                                                                                                <table cellpadding="0" cellspacing="0" border="0">
                                                                                                                        <tr>
                                                                                                                                <td valign="top" width="493" height="145" bgcolor="#707E6F">
                                                                                                                                        <div  style="margin:17 25 0 33px "><img src="images/6_w2.gif" style="margin-bottom:18px; margin-left:-13px " alt="" border="0"><br>
                                                                                                                                    <img src="images/6_p1.jpg" align="left" style="margin-right:13px;" alt="" border="0">יצירת קשר<br>
Lgv.co.il<br>
פלאפון &nbsp;0509113026<br>
Email &nbsp; Admin@lgv.co.il<br>
ICQ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 165774725</div>
                                                                                                                                </td>
                                                                                                                        </tr>
                                                                                                                        <tr>
                                                                                                                                <td valign="top" width="493" height="2"></td>
                                                                                                                        </tr>
                                                                                                                        <tr>
                                                                                                                                <td valign="top" width="493" height="290" bgcolor="#72AEAF">
                                                                                                                                        <table cellpadding="0" cellspacing="0" border="0">
                                                                                                                                                <tr>
                                                                                                                                                        <td valign="top" width="251" height="290">
                                                                                                                                                        <div style=" margin:29 0 0 33px"><img src="images/6_w3.gif" style="margin-bottom:16px; margin-left:-13px " alt="" border="0"><br>שמך המלא<input type="text" style=" width:214px; height:19px;">
<br><br style="line-height:9px ">כתובת אימיל<br><input type="text" style=" width:214px; height:19px">
<br><br style="line-height:9px ">טלפון \ פלאפון<br><input type="text" style=" width:214px; height:19px">
<br><br style="line-height:9px ">איסיקיו<br><input type="text" style=" width:214px; height:19px"></div>
                                                                                                                                                        </td>
                                                                                                                                                        <td valign="top" width="242" height="290">
                                                                                                                                                        <form action="" id="form" style="margin:0; padding:0 "><div style=" margin:56 0 0 0px">Your message:<br><textarea  cols="35" rows="35" style=" width:214px; height:154px; overflow:hidden "></textarea><br><br style="line-height:4px "><input name="image"  type="image" style="border-style:none; margin-left:111px " src="images/6_k1.gif" ><input  type="image" style="margin-left:7px; border-style:none "  src="images/6_k2.gif" ></div></form>
                                                                                                                                                        </td>
                                                                                                                                                </tr>
                                                                                                                                        </table>
                                                                                                                                </td>
                                                                                                                        </tr>
                                                                                                                </table>
                                                                                                        </td>
                                                                                                        <td valign="top" width="8" height="438"></td>
                                                                                                </tr>
                                                                                        </table>
                </td>
        </tr>
</table>
</div>
                                                                                                                                       
</body>
</html>


דור 22-04-08 14:03

בשביל מה אתה צריך את ... ?

HTML קוד:

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

guycohen 22-04-08 14:06

אני לא ממש מבין בזה תגיד לי עם צריך או לא חח שאני יוריד עם לא צריך מה צריך לשנות שמה כדי שאני יראה עברית בעמוד

דור 22-04-08 14:08

נסה את זה:
HTML קוד:

<html>
<head>

        <title>Untitled</title>
        <link href="style.css" rel="stylesheet" type="text/css">
        <script language="JavaScript">
                function load_content () {
                        if (parent.document.getElementById('main_div')) {
                                parent.document.getElementById('main_div').innerHTML=document.getElementById('inner_frame').innerHTML;
                        }
                        if (!parent.document.getElementById('main_div')) {
                        window.location=('index.html') ;
                        }
                }
        </script>
<style type="text/css">
.style1 {
        color: #000000;
}
</style>
</head>
<body onload="load_content()">
<div id="inner_frame">
<table id="frame" cellpadding="0" cellspacing="0" border="0" align="center">
        <tr>
                <td valign="top" width="750" height="438" bgcolor="#FFFFFF" class="content">
                                                                <table cellpadding="0" cellspacing="0" border="0">
                                                                                                <tr>
                                                                                                        <td valign="top" width="7" height="438"></td>
                                                                                                        <td valign="top" width="240" height="438">
                                                                                                                <table cellpadding="0" cellspacing="0" border="0">
                                                                                                                        <tr>
                                                                                                                                <td valign="top" width="240" height="438"  style="background:url(images/1_bg1.gif) repeat-x top #393F3F">
                                                                                                                                        <table cellpadding="0" cellspacing="0" border="0">
                                                                                                                                                <tr>
                                                                                                                                                        <td valign="top" width="240" height="35">
                                                                                                                                                                <table cellpadding="0" cellspacing="0" border="0">
                                                                                                                                                                        <tr>
                                                                                                                                                                                <td valign="top" width="2" height="35"></td>
                                                                                                                                                                                <td valign="top" width="236" height="35" style="background-image:url(images/1_bg4.gif) "><div  style="margin:12 0 0 12px "><img src="images/2_w2.gif" alt="" border="0"></div></td>
                                                                                                                                                                                <td valign="top" width="2" height="35"></td>
                                                                                                                                                                        </tr>
                                                                                                                                                                </table>
                                                                                                                                                        </td>
                                                                                                                                                </tr>
                                                                                                                                                <tr>
                                                                                                                                                        <td valign="top" width="240" height="403" class="block5">
                                                                                                                                                                <div  style="margin:18 25 0 28px "><strong>USA</strong><br>
Sed perspiciatis unde omnis iste natus erroluptatem accusantium doloremque laudantiumes totamrem aperia eaque. ipsa quae ab illo inventore veritatis.
<br><br style="line-height:13px ">
<strong>Germany</strong><br>
Quasi architecto beataeae dicta sunt explicabo. Nemo enim ipsam volupta
tem quia voluptas sit aspernatur aut odit aut fugit sed quia consequuntur.
<br><br style="line-height:13px ">
<strong>Italy</strong><br>
Magni dolores eos qui ratione vosequi neeque porro quisquam est quiorem ipsum quia dolor sit amet,consectetur adipisci velit, sed quia non numquam.
<br><br style="line-height:13px ">
<strong>France</strong><br>
Tempora incidunt ut labore et dolgnam aliquam quaerat voluptm ad minimaam, quis ostrum exercita corporis suscipit laboriosammodi conseis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae.
</div>
                                                                                                                                                        </td>
                                                                                                                                                </tr>
                                                                                                                                        </table>
                                                                                                                                </td>
                                                                                                                        </tr>
                                                                                                                </table>
                                                                                                        </td>
                                                                                                        <td valign="top" width="2" height="438"></td>
                                                                                                        <td valign="top" width="493" height="438">
                                                                                                                <table cellpadding="0" cellspacing="0" border="0">
                                                                                                                        <tr>
                                                                                                                                <td valign="top" width="493" height="145" bgcolor="#707E6F">
                                                                                                                                        <div  style="margin:17 25 0 33px "><img src="images/6_w2.gif" style="margin-bottom:18px; margin-left:-13px " alt="" border="0"><br>
                                                                                                                                    <img src="images/6_p1.jpg" align="left" style="margin-right:13px;" alt="" border="0">יצירת קשר<br>
Lgv.co.il<br>
פלאפון &nbsp;0509113026<br>
Email &nbsp; Admin@lgv.co.il<br>
ICQ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 165774725</div>
                                                                                                                                </td>
                                                                                                                        </tr>
                                                                                                                        <tr>
                                                                                                                                <td valign="top" width="493" height="2"></td>
                                                                                                                        </tr>
                                                                                                                        <tr>
                                                                                                                                <td valign="top" width="493" height="290" bgcolor="#72AEAF">
                                                                                                                                        <table cellpadding="0" cellspacing="0" border="0">
                                                                                                                                                <tr>
                                                                                                                                                        <td valign="top" width="251" height="290">
                                                                                                                                                        <div style=" margin:29 0 0 33px"><img src="images/6_w3.gif" style="margin-bottom:16px; margin-left:-13px " alt="" border="0"><br>שמך המלא<input type="text" style=" width:214px; height:19px;">
<br><br style="line-height:9px ">כתובת אימיל<br><input type="text" style=" width:214px; height:19px">
<br><br style="line-height:9px ">טלפון \ פלאפון<br><input type="text" style=" width:214px; height:19px">
<br><br style="line-height:9px ">איסיקיו<br><input type="text" style=" width:214px; height:19px"></div>
                                                                                                                                                        </td>
                                                                                                                                                        <td valign="top" width="242" height="290">
                                                                                                                                                        <form action="" id="form" style="margin:0; padding:0 "><div style=" margin:56 0 0 0px">Your message:<br><textarea  cols="35" rows="35" style=" width:214px; height:154px; overflow:hidden "></textarea><br><br style="line-height:4px "><input name="image"  type="image" style="border-style:none; margin-left:111px " src="images/6_k1.gif" ><input  type="image" style="margin-left:7px; border-style:none "  src="images/6_k2.gif" ></div></form>
                                                                                                                                                        </td>
                                                                                                                                                </tr>
                                                                                                                                        </table>
                                                                                                                                </td>
                                                                                                                        </tr>
                                                                                                                </table>
                                                                                                        </td>
                                                                                                        <td valign="top" width="8" height="438"></td>
                                                                                                </tr>
                                                                                        </table>
                </td>
        </tr>
</table>
</div>
                                                                                                                                       
</body>
</html>


guycohen 22-04-08 14:12

עריכה:
הנה תודה זה עובד :)
עכשיו תראה יש לי עוד בעיה שאני רואה

האתר לפני זה היה מתוכנת לאנגלית
איך אני עושה שהכתב יהיה מימין לשמאל כאילו עברית תיקנית ולא בעברית אבל מימין לשמאל

דור 22-04-08 14:12

מוזר, לי כן :S

Tomer 22-04-08 14:24

ציטוט:

נכתב במקור על ידי MasterT (פרסם 626566)
*מנחש את שאר קוד הדף*
לא, אין בינינו טלפתיה. תוכל להביא את שאר קוד הדף?

דווקא כאן הציניות [ניסיון החיקוי?] לא נדרש. הוא נתן את תחילת הקוד, כל שאר הקוד לא תורם לעזרה (אתה לא צריך את </html> כדי לדעת למה זה לא מציג עברית).

ציטוט:

נכתב במקור על ידי דור בן עמי (פרסם 626578)
בשביל מה אתה צריך את ... ?

HTML קוד:

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

אולי כדי להכריז על העמוד כעל עמוד בעל קידוד UTF-8?

גיא כהן,
העמוד שמור כ UTF-8 דרך העורך טקסט? אם לא, תשמור אותו ככה ותוסיף את ה meta tag. זה אמור להציג עברית בצורה תקינה.

דור 22-04-08 14:30

ציטוט:

נכתב במקור על ידי guycohen (פרסם 626583)
עריכה:
הנה תודה זה עובד :)
עכשיו תראה יש לי עוד בעיה שאני רואה

האתר לפני זה היה מתוכנת לאנגלית
איך אני עושה שהכתב יהיה מימין לשמאל כאילו עברית תיקנית ולא בעברית אבל מימין לשמאל

במקום <html>
תכתוב
קוד:

<html dir="rtl">


כל הזמנים הם GMT +2. הזמן כעת הוא 07:40.

מופעל באמצעות VBulletin גרסה 3.8.6
כל הזכויות שמורות ©
כל הזכויות שמורות לסולל יבוא ורשתות (1997) בע"מ