lestrrat has asked for the wisdom of the Perl Monks concerning the following question:
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?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Unicode word wrapping
by seattlejohn (Deacon) on Dec 09, 2002 at 08:43 UTC | |
by lestrrat (Deacon) on Dec 09, 2002 at 08:56 UTC | |
|
Re: Unicode word wrapping
by rasta (Hermit) on Dec 09, 2002 at 09:24 UTC | |
|
Re: Unicode word wrapping
by theorbtwo (Prior) on Dec 09, 2002 at 14:45 UTC | |
|
Re: Unicode word wrapping
by ph0enix (Friar) on Dec 09, 2002 at 09:40 UTC | |
|
Re: Unicode word wrapping
by dingus (Friar) on Dec 09, 2002 at 12:15 UTC |