Qingjiang Yuan
Best practices of handling apostrophes ( ’) in .properties files
Problem: java.text.MessageFormat requires single ( ’) be escaped using double ( ’’), other classes
don't have this requirement.
Best practices:
- Double the apostrophe (’’) when you see bracket(s) ({}) in the same message.
- Do not double the apostrophe( ’) if there is no bracket ({}) in the same message.
- Do not double the apostrophe( ’) if you see an apostrophe in the original English contents since it should have been confirmed to be displayed properly.
- Do not use apostrophe( ’), use quotation mark (′) instead.
Posted at 09:23AM May 29, 2007 by byuan in Globalization | Comments[4]
Tuesday May 29, 2007
Posted by Peter Mork on May 29, 2007 at 10:05 AM PDT #
Posted by 192.18.101.5 on May 29, 2007 at 10:27 AM PDT #
Posted by 192.18.101.5 on May 29, 2007 at 10:29 AM PDT #
o
Posted by 193.78.170.197 on July 08, 2009 at 10:39 AM PDT #