[jboss-user] [Beginners Corner] - Re: Seam Text: linebreaks in .properties file

genman do-not-reply at jboss.com
Wed Oct 24 17:36:49 EDT 2007


Read the JavaDoc for java.util.Properties:


  | Then every entry in this Properties table is written out, one per line. For each entry the key string is written, then an ASCII =, then the associated element string. Each character of the key and element strings is examined to see whether it should be rendered as an escape sequence. The ASCII characters \, tab, form feed, newline, and carriage return are written as \\, \t, \f \n, and \r, respectively. Characters less than \u0020 and characters greater than \u007E are written as \uxxxx for the appropriate hexadecimal value xxxx. For the key, all space characters are written with a preceding \ character. For the element, leading space characters, but not embedded or trailing space characters, are written with a preceding \  character. The key and element characters #, !, =, and : are written with a preceding backslash to ensure that they are properly loaded.
  | 

So use \r\n

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098587#4098587

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098587



More information about the jboss-user mailing list