On Mon, 5 Apr 2004 19:07:48 +0200
"Henner Kollmann" <[EMAIL PROTECTED]> wrote:

HK> I think this is to difficult - special case over special case.
HK> 
HK> Let's start again.
HK> 
HK> My problem is:
HK> In the database there are strings like 
HK>                     let&nbsp;it&nbsp;be
HK> or
HK>                     &u889088;   (e.g. chinese unicode chars).
HK> 
HK> If we do an escapeChars this will result in 
HK>                   let&amp;nbsp;it&amp;nbsp;be
HK> Or
HK>                     &amp;u889088;
HK> This is normally not what i expected - in textFields and labels i
HK> want to have the non breaking space or the chinese char.
HK> Only in some special cases i want to see the escaped chars on my
HK> page.
HK> 
HK> OK, now the idea: What's about using unescape for the data we get
HK> from the database and an escape after?
HK> In the case we want to see the escaped chars we do not do the
HK> unescape.
HK> 
HK> Could this be the solution?

I have made some tests here, and probably the problem is : 

I type in a textfield some characters like C with accute the browser
send to the server the escaped &#263; code. As you use high unicode
chars you have seen this in your table, and as my chars are low the
encoding are not made using html codes. All html encodings that I have
in my database are really necessary in the fields, and current dbforms
does not escape and give-me the problems. In your case you agree in the
browser encoding because you APP is only used in WEB and HTML encoding
works fine.

This show that the problem is bigger, and we must divide it in 2 steps.
1. Make the basic encoding related to "' <> 
   Check the minimum requirements and apply it. No need for complains
about compatibility because it is really necessary for HTML.

2. Decide the better format for full encoding. 
I consider that dbforms is a framework to generate web applications but
the data can be common(used by other applications), and then we can't
consider that database values are html encoded every time, and unicode
must be encoded in database fields by Java and not by browser. This make
necessary to decode the data that comes from browsers before writing to
database.
In this step we must check all the problems related to compatibility
with current apps.


-- 


Ivan F. Martinez


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
DbForms Mailing List

http://www.wap-force.net/dbforms

Reply via email to