Announcement Announcement Module
Collapse
No announcement yet.
Wrong Locale with fmt:message or spring:message Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Wrong Locale with fmt:message or spring:message

    hi,
    i have this problem - tags fmt:message or spring:message returns always locale from my request (i guess - i am czech and displayed messages are in czech) although i change it.
    in my jsp,
    Code:
    request.getLocale()
    returns cs, but
    Code:
    RequestContextUtils.getLocale(request)
    returns en.
    all messages (fmt:message, spring:message) are always in czech but they have wrong encoding (?!) - i use utf-8 but some letters (that are not in ascii are wrong).
    interesting thing is that fmt:formatDate works correctly (day names are in czech/english)

    can anybody help me plz? thanks in advance
    tomas

    info: i am using jstl.jar v1.1.2, standard.jar v1.1.2 and spring 1.2.4
Working...
X