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

Gene:
> 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.
>
> 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.
Forget the OEM symbols and the [accent][char] convention. The ISO 8859-1
Latin-1
charset should give you enough for French, Spanish, Italian and several
others.
> 2) The second problem is how best to send the character to the browser?
> 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.
For my own HTML pages, I use the accented characters directly. (It works
with
all browsers I have.) Perhaps you should try this approach first. If it is
not
good enough for you, then transform the offending characters into a '&#nnn;'
sequence just when writing your pages.
> The problem is complicated by the fact that data will be searched and
sorted.
Do you mean "searched and sorted by your application" or "searched and
sorted
using your user's browser"? In the first case, it is no problem at all.
Regards,
Federico de Ceballos
----------------------------------------------------------------------
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 - 12:03:53 PDT
This archive was generated by hypermail 2.2.0 : Thu Nov 20 2008 - 03:04:33 PST