עבור לתוכן
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.

שאלה שהיא בין JAVA ל HTML בנושא יצירת קבצי אקסל

Featured Replies

פורסם

כתבתי JAVA SERVLET שאמור להציג טבלה ב HTML ואם רוצים אז גם לשמור אותה כקובץ EXCEL.

הקטע של ה HTML עובד יפה וכעיקרון גם הקטע של ה EXCEL כאשר לשם יצירת EXCEL כתבתי ב HEADER של הקובץ שלי את הפרמטר הבא: Content-type: application/vnd.ms-excel.

זה אכן יוצר לי מסמך EXCEL, אבל הבעיה היא שכל מה שהיה אמור להיות בעברית נראה ג'יבריש. הוספתי שורות שאומרות לו לעבוד ב UTF-8 שאמור להכיר עברית ועכשיו זה נראה ככה:

<Content-type: application/vnd.ms-excel;charset=utf-8>

<!DOCTYPE application/vnd.ms-excel;charset=utf-8>

<META HTTP-EQUIV="expires" CONTENT="0">

<META HTTP-EQUIV="pragma" CONTENT="NO-CACHE">

אבל עדיין זה לא עוזר.

תחילת הקובץ נראית ככה:

<Content-type: application/vnd.ms-excel;charset=utf-8>

<!DOCTYPE application/vnd.ms-excel;charset=utf-8>

<META HTTP-EQUIV="expires" CONTENT="0">

<META HTTP-EQUIV="pragma" CONTENT="NO-CACHE">

<html xmlns:o="urn:schemas-microsoft-com:office:office"

xmlns:x="urn:schemas-microsoft-com:office:excel"

xmlns="http://www.w3.org/TR/REC-html40">

<head>

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

<meta name=ProgId content=Excel.Sheet>

<meta name=Generator content="Microsoft Excel 10">

<link rel=File-List href="a.files/filelist.xml">

<link rel=Edit-Time-Data href="a.files/editdata.mso">

<link rel=OLE-Object-Data href="a.files/oledata.mso">

כמו שאתם רואים, לאקסל יש charset פנימי (windows-1254) שבו אין לי שליטה והוא שגורם לעברית להיראות לא טוב. האם מישהו יודע איך לשנות את זה ?

ארכיון

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

דיונים חדשים

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.