commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] Commented: (LANG-498) Add StringEscapeUtils.escapeText() methods
Date Tue, 28 Apr 2009 00:39:30 GMT

    [ https://issues.apache.org/jira/browse/LANG-498?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12703459#action_12703459
] 

Sebb commented on LANG-498:
---------------------------

Seems useful to me, but maybe it would be better to name it as toAsciiPrintable() or similar?
And perhaps it belongs in a different class.

> Add StringEscapeUtils.escapeText() methods
> ------------------------------------------
>
>                 Key: LANG-498
>                 URL: https://issues.apache.org/jira/browse/LANG-498
>             Project: Commons Lang
>          Issue Type: New Feature
>    Affects Versions: 3.x, 2.x
>            Reporter: Henning Schmiedehausen
>         Attachments: LANG-498.patch
>
>
> I needed to escape text to be print out to a file; mainly so that all non-ASCII characters
(< 32 and >=127) are printed out as escapes (if available) or unicode escapes. This
is a one-way conversion, there is no way to find out whether a String contained "\\n" or a
newline before conversion, so I just set up escapeText() methods, no unescapeText(). 
> Please apply to the next release of commons-lang. :-) 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message