![]() |
||
| Home | SwiftForth Archive | SwiftX Archive | |

Hi Gene,
Gene LeFave (2004-05-20 13:33):
> I know this is a bit off topic, but I know there are a few non-english speakers
> here. Hopefully, someone with more experience in this will come to my
> rescue.
Being from Germany, I probably qualify :-)
>
> I'm trying to add some basic support for other languages in my application. It
> is a Foth web server/database app. I want to be able to store and display the
> correct accented characters, particularly for French and Spanish.
as long as you're not leaving this area, you're quite safe with with
the native Windows codepage 1252, which is basically ISO8859-15, which
is basically ISO8859-1 plus the d2n Euro sign.
>
> I have two basic questions:
>
> 1) How should strings be stored internally? As far as I can tell I have three
> choices, use the OEM symbol set, use the windows symbol set, use the html
> convention &#nnn; , or use the [accent][char] convention.
>
> I am completely stumped as to which of these is best.
It's not as hard as it looks from your place.
>
> 2) The second problem is how best to send the character to the browser?
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-8859-1">
put this line in the <head> of your HTML page. If it does not work,
your clients should upgrade their browsers, as it's a long standing
part of the HTML standards.
> Again, the options are use the mime type to specify the symbol set, and send
> the characters as binary. Or send the html &#nnn; string.
>
> The problem is complicated by the fact that data will be searched and sorted.
> And, of course, I'm handicapped by the fact that I don't even know how to get
> these symbols into this email much less my program.
Searching is no problem as long as you stay within the encoding.
Sorting might be a problem depending on whether your sorting is locale
aware or based on character code.
HTH,
s.
-- Stefan Schmiedl +-------------------------------+----------------------------------------+ |Approximity GmbH | EDV-Beratung Schmiedl | |http://www.approximity.com | Am Bräuweiher 4, 93499 Zandt, Germany | |mailto:stefan_at_approximity.com | Tel. (09944) 3068-98, Fax -97 | +-------------------------------+----------------------------------------+ ---------------------------------------------------------------------- sftalk_at_forth.com The SwiftForth programming discussion email list To unsubscribe, send subject "unsubscribe" to sftalk-request_at_forth.com For list command help, send subject "help" to sftalk-request_at_forth.com Message archives are located at http://www.forth.com/archive/sftalk ---------------------------------------------------------------------- This list is a forum for SwiftForth users. For product support and bug reports, please send email to support_at_forth.com ----------------------------------------------------------------------Received on Thu May 20 2004 - 13:05:18 PDT
This archive was generated by hypermail 2.2.0 : Wed Jan 07 2009 - 03:04:12 PST