עבור לתוכן
View in the app

A better way to browse. Learn more.

HWzone

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

בעיה של עברית ב PHP

Featured Replies

פורסם

שלום, אני בונה כרגע אתר בPHP עם טקסטים בעברית, אך בגלל שאף פעם לא בניתי אתר בעברית אני לא יודע איך לפתור את הבעיה:

אני מריץ את הקוד על שרת apache 2 שפתחתי על המחשב שלי, אבל משום מה כל הטקסטים בעברית מופיעים כג'יבריש ורק אחרי שאני משנה encoding אפשר לקרוא בעברית. בראש כל עמוד (בתוך <head>) שמתי את 2 השורות:


<meta http-equiv="Content-Type" content="text/html; charset=windows-1255">
<meta http-equiv="Content-Language" content="he">

אך זה עדין לא עוזר (לא אמורה להיות בעיה בקוד מפני שזה מועתק מכמה אתרים שבהם אין בעיות עברית)

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

נ.ב

ניסיתי את זה גם בשרת אחר שמריץ APACHE 2 וזה קורה גם שם

פורסם

תבדוק את קובץ ה conf של אפאצ'י, יכול להיות שיש לו UTF-8 בתור default charset שהוא דוחף אוטומטית לכל העמודים.

פורסם
  • מחבר

תודה :)

זאת היתה הבעיה

ארכיון

דיון זה הועבר לארכיון ולא ניתן להוסיף בו תגובות חדשות.

דיונים חדשים

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.