Re: French characters in variables
This WebDNA talk-list message is from 2001
It keeps the original formatting.
numero = 39706
interpreted = N
texte = Larry Trudelle wrote:> > Here's what I am trying to do in simple context:> > I have a search page which gives the user some pop-up lists. The lists are populated from a> DB file using standard web-cat search methods. The user selects a list option, then clicks a> submit button.> The Search values from the selected list are passed to a Results page with Command='search'.> This works perfectly when using the English version.> > The French version requires French DB values, which are just translations of the English DB.> The pop-up lists fo show the French text with the correct accents,> but when the values are passed to the Results page, the text is not the same as whe was sent.> Although some people have gotten things to work using extended ASCII characters, I think it is a mistake to store anything except low ASCII andHTML entities (è). Then the URLized text will be exactly the same asbefore, but will display properly. That is what the HTML entities are for, after all, which is to encode extended ASCII characters in a form that willdisplay properly no matter what code-set you are using.You need to translate a user-supplied value with [convertchars] prior to using a [search] context. It just so happens that the browser you are usingis correctly translating Ne pas d�ranger into Ne+pas+d%E9ranger but youcannot assume that will always be true (since it depends on the browser).If you have instead Ne pas déranger instead, that will always betranslated the same way.John-- John PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4720 Boston WayLanham, MD 20706301-459-3366 x.5010fax 301-429-5747-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list
.To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Larry Trudelle wrote:> > Here's what I am trying to do in simple context:> > I have a search page which gives the user some pop-up lists. The lists are populated from a> DB file using standard web-cat search methods. The user selects a list option, then clicks a> submit button.> The Search values from the selected list are passed to a Results page with Command='search'.> This works perfectly when using the English version.> > The French version requires French DB values, which are just translations of the English DB.> The pop-up lists fo show the French text with the correct accents,> but when the values are passed to the Results page, the text is not the same as whe was sent.> Although some people have gotten things to work using extended ASCII characters, I think it is a mistake to store anything except low ASCII andHTML entities (è). Then the URLized text will be exactly the same asbefore, but will display properly. That is what the HTML entities are for, after all, which is to encode extended ASCII characters in a form that willdisplay properly no matter what code-set you are using.You need to translate a user-supplied value with [convertchars] prior to using a [search] context. It just so happens that the browser you are usingis correctly translating Ne pas d�ranger into Ne+pas+d%E9ranger but youcannot assume that will always be true (since it depends on the browser).If you have instead Ne pas déranger instead, that will always betranslated the same way.John-- John PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4720 Boston WayLanham, MD 20706301-459-3366 x.5010fax 301-429-5747-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
John Peacock
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
[showif] question (2000)
select multiple 2 more cents (1997)
Urgent help needed (1998)
Only charge card when product shipped ? (1997)
WebMerchant/Macauthorize Suggestions? (1997)
with Link i need to (1997)
Lookup within a Search (2005)
Doctype (2004)
Sku numbers (1997)
unitshipcost vs shipcosts (1997)
Fields font size (2003)
Plugin or CGI or both (1997)
Trying to append from within a single template file (2005)
Server slowing down. (1997)
[cart]'s ever get recycled? (2000)
Shopping Cart Limits? (1998)
WebCatalog2 Feature Feedback (1996)
Support ?? (1997)
Concerning Emailer under Linux... does it exist? (2000)
automating txt downloads for conversion to webcat db (2006)