Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Ferench Accent marks on HTML web pages don't work
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00979608
Message ID:
00979775
Views:
26
Cecil,

The character encodings are important. Check to see what the encoding is in your browser. It's probably pointing at an invalid character set.

To avoid this every request you generate on the server should embed a character set either as part of the Content-Type header generated by the server:

Content-Type: text/html; charset=utf-8

or via meta tag in the HTML header of the document:

< META http-equiv="Content-Type" content="text/html; charset=utf-8" >

You can also use a codepage there, like Windows-1252 for example for the Charset. 1252 should work with those characters as well and might save you special encoding.

However, the best way to encode text is to use UTF-8 which is Unicode and should work easily with anything you throw at it out of your language. You can use STRCONV() to convert to UTF-8.

There's more information on Unicode use and how to get into Web pages here:

http://www.west-wind.com/presentations/foxunicode/foxunicode.asp

+++ Rick ---


>Okay, so the following is not about Visual FoxPro, but it is important nevertheless. I need help on this.
>
>How do I use French accent marks on my web site www.champenois.com ? The accent marks, such as "ê" or "Ê" seem to make strange characters.
>
>The way I made the accent marks was to use the key combinations of the ALT key and the following numbers respectively, 0234 and 0202. However, when you render the page using either a netscape browser or the Internet Explorer browser, it comes out quite ulgly.
>
>So, how do you use French accent marks without the web page coming out ugly?
>
>Cecil
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Previous
Reply
Map
View

Click here to load this message in the networking platform