java - How to internationalize quotation marks in a JSP -


i have application showing quotes client in jsp. actual text of quotation stored in database , doesn't include quotation marks.

the jsp has "{$bean.quote}" which, pointed out boss, not internationalizable.

i've got approval internationalize this, i'm not sure approach use. first 1 i18n lookup startquote , endquote , store character in table. feels heavy.

ideas?

that 1 way it. you're right; if you're doing in lot of places, it's going awkward read , maintain.

html has special element this: q. can put in page:

<q>${bean.quote}</q> 

you can perform internationalization in css, described in quotation marks section of css specification:

q:lang(en) {     quotes: '\201c' '\201d' "\2018" "\2019" } q:lang(no) {     quotes: "\ab" "\bb" '"' '"' }  q:before {     content: open-quote; } q:after {     content: close-quote; } 

Comments

Popular posts from this blog

1111. appearing after print sequence - php -

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

Ruby on Rails, ActiveRecord, Postgres, UTF-8 and ASCII-8BIT encodings -