Re: French characters in variables

This WebDNA talk-list message is from

2001


It keeps the original formatting.
numero = 39702
interpreted = N
texte = 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.Here's the specific problem:When values are entered into a form variable, either by user entry, or by placing the text within the HTML, when the value is passed to another form, using either a Post or Get, some accented characters are screwed-up.For example: If I put Ne pas déranger into a form field and pass it to the second form, and use a GET the URL shows Ne+pas+d%E9ranger, and the field variable on the second form shows Ne pas dÈranger. This happens regardless of whether you use GET or POST. It should show the original value from the first form; Ne pas déranger.However, if I simply place the text within the HTML of second form, without passing it through a variable, it appears as Ne pas déranger.If a pull datat from a database, and that data has french accented characters, the text is displayed correctly, I just cannot pass it to another form as a variable.Here is the conversion db contents, and the basic HTML for the 2 test forms.--- contents of frenchconversions.bd --- from to À À Á Á Â Â Ã Ã Ä Ä Ç Ç È È É É Ê Ê Ë Ë Ì Ì Í Í Î Î Ï Ï Ò Ò Ó Ó Ô Ô Õ Õ Ö Ö Ù Ù Ú Ú Û Û Ü Ü à à á á â â ã ã ä ä ç ç è è é é ê ê ë ë ì ì í í î î ï ï ò ò ó ó ô ô õ õ ö ö ù ù ú ú û û ü ü ÿ ÿ ’ ' « « » » --- HTML FOR FORM ONE(SEND):---- [ConvertChars db=frenchconversions.db]

SOME FRENCH WORDS:
Québec
Caractéristiques
Ne pas déranger
cantonnière


Field1 to Pass:
Field2 to Pass:
Field3 to Pass:

[/ConvertChars] --- HTML FOR FORM TWO(RECEIVE):---- [ConvertChars db=frenchconversions.db]

SOME FRENCH WORDS:
Québec
Caractéristiques
Ne pas déranger
cantonnière

Form Variables:
[formvariables]
[index] - [name] - [value] [/formvariables]

Fields Received from Form1:
1:
2:
3: [/convertchars] Thank you for your help.--------------------- John Peacock wrote:> Larry Trudelle wrote: > > > > Thanks, I changed the conversion db, as follows, but it still does not convert the form > > variables when passed between forms. > > > > And why would you think it would? The [convertchars] only applies to text you > have included inside the context. I guess you need to show us some more of > what you are doing (please don't post the entire HTML page, just the important > bits. > > Are the French characters being keyed by the user into a text box? Are you > pulling data from a database and creating the link yourself? Did you > remember to flush your databases after you made the change to the conversion > db? > > John > > -- > John Peacock > Director of Information Research and Technology > Rowman & Littlefield Publishing Group > 4720 Boston Way > Lanham, MD 20706 > 301-459-3366 x.5010 > fax 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/ ------------------------------------------------------------- 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:

    
  1. Re: French characters in variables (Larry Trudelle 2001)
  2. Re: French characters in variables (Tom Duke 2001)
  3. Re: French characters in variables (Christer Olsson 2001)
  4. Re: French characters in variables (Clement Ross 2001)
  5. Re: French characters in variables (John Peacock 2001)
  6. Re: French characters in variables (Larry Trudelle 2001)
  7. Re: French characters in variables (Larry Trudelle 2001)
  8. Re: French characters in variables (Michael Davis 2001)
  9. Re: French characters in variables (Larry Trudelle 2001)
  10. Re: French characters in variables (Clement Ross 2001)
  11. Re: French characters in variables (John Peacock 2001)
  12. Re: French characters in variables (Glenn Busbin 2001)
  13. Re: French characters in variables (Larry Trudelle 2001)
  14. Re: French characters in variables (Christer Olsson 2001)
  15. Re: French characters in variables (John Peacock 2001)
  16. Re: French characters in variables (Larry Trudelle 2001)
  17. Re: French characters in variables (Christer Olsson 2001)
  18. Re: French characters in variables (Larry Trudelle 2001)
  19. Re: French characters in variables (Matthew Bohne 2001)
  20. French characters in variables (Larry Trudelle 2001)
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.Here's the specific problem:When values are entered into a form variable, either by user entry, or by placing the text within the HTML, when the value is passed to another form, using either a Post or Get, some accented characters are screwed-up.For example: If I put Ne pas déranger into a form field and pass it to the second form, and use a GET the URL shows Ne+pas+d%E9ranger, and the field variable on the second form shows Ne pas dÈranger. This happens regardless of whether you use GET or POST. It should show the original value from the first form; Ne pas déranger.However, if I simply place the text within the HTML of second form, without passing it through a variable, it appears as Ne pas déranger.If a pull datat from a database, and that data has french accented characters, the text is displayed correctly, I just cannot pass it to another form as a variable.Here is the conversion db contents, and the basic HTML for the 2 test forms.--- contents of frenchconversions.bd --- from to À À Á Á Â Â Ã Ã Ä Ä Ç Ç È È É É Ê Ê Ë Ë Ì Ì Í Í Î Î Ï Ï Ò Ò Ó Ó Ô Ô Õ Õ Ö Ö Ù Ù Ú Ú Û Û Ü Ü à à á á â â ã ã ä ä ç ç è è é é ê ê ë ë ì ì í í î î ï ï ò ò ó ó ô ô õ õ ö ö ù ù ú ú û û ü ü ÿ ÿ ’ ' « « » » --- HTML FOR FORM ONE(SEND):---- [ConvertChars db=frenchconversions.db]

Field1 to Pass:
Field2 to Pass:
Field3 to Pass:

[/ConvertChars] --- HTML FOR FORM TWO(RECEIVE):---- [ConvertChars db=frenchconversions.db]

SOME FRENCH WORDS:
Québec
Caractéristiques
Ne pas déranger
cantonnière

Form Variables:
[formvariables]
[index] - [name] - [value] [/formvariables]

Fields Received from Form1:
1:
2:
3: [/convertchars] Thank you for your help.--------------------- John Peacock wrote:> Larry Trudelle wrote: > > > > Thanks, I changed the conversion db, as follows, but it still does not convert the form > > variables when passed between forms. > > > > And why would you think it would? The [convertchars] only applies to text you > have included inside the context. I guess you need to show us some more of > what you are doing (please don't post the entire HTML page, just the important > bits. > > Are the French characters being keyed by the user into a text box? Are you > pulling data from a database and creating the link yourself? Did you > remember to flush your databases after you made the change to the conversion > db? > > John > > -- > John Peacock > Director of Information Research and Technology > Rowman & Littlefield Publishing Group > 4720 Boston Way > Lanham, MD 20706 > 301-459-3366 x.5010 > fax 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/ ------------------------------------------------------------- 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/ Larry Trudelle

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:

WebCat with WebTen (1998) Criminal activity reappears on this talk list ... (2002) taxTotal, grandTotal (1997) Help with dates (2001) This [search] worked before update to 4.5.1 (2003) SMSI - MacWorld (2005) [carts] and databases (1997) WC2b12: Yes, Formulas.db is for real (1997) Solaris + WebCat (2001) New Media Careers -- Jobs! (1998) Where has WebDNA shown up in your life? (2003) TPC Connect (1999) [WebDNA] Serial numbers and pricing for WebDNA 7.0 (2011) Setting up the server (1997) Secure server question (1997) Adding Message to Order (1997) RE: [WebDNA] html email.. should be a no-brainer.. but it is not parsing. (?) (2010) Bug Report, maybe (1997) Cart Number Propagation (1997) SiteGaurd file Cache vs webcatalog cache (1997)

SOME FRENCH WORDS:
Québec
Caractéristiques
Ne pas déranger
cantonnière