Localization and Potentially Dangerous Request.Form Values

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Using the asp.net button control (and I assume others), I place the phrase
"Don't Save" in the .Text field. The button displays without any problems,
but upon postback, the server responds with "A potentially dangerous
Request.Form value was detected". I've determined this problem is due to
the single quote in the string.

My main problem occurs when trying to localize our application. In many
foreign languages, the apostrophe is used quite frequently, and it is a
difficult requirement to ask our translators to find phrases without single
quotes. The translator does not know if the key/value of the resource is
destined for static localized text on a page, or if it will be used on a
button or control that will be validated upon postback.

How does one deal with balancing security and localization?


.



Relevant Pages

  • Re: Bombers v. terrorists
    ... >>> probably to you seemed neutral, but is in fact a stock phrase used by ... > world certainly does not exist in British controlled Northern Ireland ... > control on the island of Ireland. ... too many Irish men and women have died for the Irish to trust ...
    (alt.usage.english)
  • Re: Localizing PrintPreviewDialog
    ... > It looks as if the PrintPreviewDialog control cannot be localized and I ... The PrintPreviewDialog displays German language texts on a German ... You can derive from the dialog and localize the captions. ...
    (microsoft.public.dotnet.framework.windowsforms.controls)
  • Localizing PrintPreviewDialog
    ... It looks as if the PrintPreviewDialog control cannot be localized and I ... will have to re-write this control from scratch in order to localize it. ...
    (microsoft.public.dotnet.framework.windowsforms.controls)
  • Creating a localized control
    ... I am providing a plugin capability by using an interface ... 'CreateConfigurationControl' which returns a UserControl. ... I am now trying to localize the application, ... In order to actually create the control, ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: Science and prostitution
    ... If there is a specific phrase that needs to be heard by those who control the money, ...
    (sci.physics)