Friday, May 2, 2008 - New servers are in! Click-in for more info!
VoyForums
VoyForums has a no-popup policy. If you think you are receiving a pop-up originating from a VoyForum,
please report the Forum ID and any ad info using this contact form.

VoyUser Login optional ] [ Contact Forum Admin ] [ Main index ] [ Post a new message ] [ Search | Check update time | Archives: 123[4]5 ]
Subject: 2. Specifying an encoding when saving a file


Author:
Authors
[ Next Thread | Previous Thread | Next Message | Previous Message ]
Date Posted: 17:56:23 07/08/04 Thu
In reply to: Mahmud Kashgari 's message, "Re: 2. Writing in Arabic in VTrain 4.5" on 05:56:07 07/05/04 Mon

>I find it odd that all the time, you talk about fonts,
>but encoding is not directly tied to the fonts. In the
>Internet Explorer, I can change the encoding of an
>html file to whatever I like. I can make it UTF-8, ISO
>8859-x, or Windows-1252. Obviously, the page will
>display correctly when the encoding I select matches
>the page's original encoding. For other encodings, I
>get garbage, but I still get something displayed,
>using the same font all over
. So, fonts are not
>the real problem, as long as they contain the
>necessary glyphs. The problem is in encoding.

Please notice that browsers do not work the same way as text editors or VTrain, for example.

Actually, HTML pages are nothing but plain text files (".txt") with a 'fake' extension (.htm). For backward compatibility, the 'source code' of an HTML page is usually written in ANSI (Western), and a header in that code tells the browser which encoding scheme it must use to display the page. Just open an HTML page with Notepad to see something like this:
<META HTTP-EQUIV="Content-Type" CONTENT="text/html;CHARSET=iso-8859-1">

This is a simple and elegant approach, but since this header is set once for the whole page, multilingual documents are not possible, unless you use the Text only (Unicode) format.

For this reason, most editors use the rich text format ".rtf" instead of ".txt", which stores information about encodings along with font data. This is the case of Microsoft Word and VTrain, but since VTrain 4.5 is not Unicode-enabled yet, non-Western glyphs get lost when you save Decks of flashcards (".vok" files), and when you export a ".vok" Deck to a ".txt" file with VTrain 4.5, it is saved as Text only (ANSI).

Please take into account that VTrain 5.0 will be Unicode-compatible, so the issues you describe will be gone.



[ Next Thread | Previous Thread | Next Message | Previous Message ]

Replies:
Subject Author Date
Re: 2. Specifying an encoding when saving a fileMahmud Kashgari00:17:48 07/10/04 Sat


VoyUser Login ] Not required to post.
Post a public reply to this message | Go post a new public message
* Notice: Posting problems? [ Click here ]
* HTML allowed in marked fields.
Message subject (required):

Name (required):

  Expression (Optional mood/title along with your name) Examples: (happy, sad, The Joyful, etc.) help)

  E-mail address (optional):

* Type your message here:


Notice: Copies of your message may remain on this and other systems on internet. Please be respectful.

[ Contact Forum Admin ]


Forum timezone: GMT+0
VF Version: 2.94, ConfDB:
Before posting please read our privacy policy.
VoyForums(tm) is a Free Service from Voyager Info-Systems.
Copyright © 1998-2008 Voyager Info-Systems. All Rights Reserved.