I'm hitting a block trying to format text that is sent to me as a CGI paramter.
Here's the scenario: user types something into a form, we process it , and then print out the HTML results -- which includes that text that the user just submitted, verbatim. The easiest way is probably to just surround that text using some auto-wrapping HTML tag, but we want to use a <pre> to enclose the text AND also disallow bad formatting that exceeds a certain column size
This is easily done on a ascii character set, but I'm having a hell of a time trying to do this on a Japanese string encoded in unicode. Does anyone have an idea as to how to do this?
In reply to Unicode word wrapping by lestrrat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |