Announcement Announcement Module
Collapse
No announcement yet.
STS 2.5.2 release language problems Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • STS 2.5.2 release language problems

    Hi,

    Ive just had a strange experience with Roo 1.1.1.release and sts 2.5.2.release

    Language settings in menus and panels is fine and works great.
    But if the user enters data in icelandic like :

    etta er i

    when I press save sts transforms this to :

    þetta er æði

    which is very odd, and it saves this data this way, the database I use is mysql with UTF-8 collation utf_icelandic_is

    and this wasnt a problem in sts 2.5.0 release or earlier versions.

    I tried making an empty roo project with just one entity and one string field and this problem is there by default.

    any ideas would be appreciated, Ive been looking at all configuration files and messing with them with no results.

    Emil

  • #2
    Further information - create controller and its contents

    This is the roo generated controller that is used when posting this.

    @RequestMapping(method = RequestMethod.POST)
    public String StudentController.create(@Valid Student student, BindingResult result, Model model, HttpServletRequest request) {
    System.out.println("# result : " + student.getName() + " #");
    if (result.hasErrors()) {
    model.addAttribute("student", student);
    return "students/create";
    }
    student.persist();
    return "redirect:/students/" + encodeUrlPathSegment(student.getId().toString(), request);
    }

    and here the student object has become grabled or its character set has been changed.

    Comment


    • #3
      tested 2.6.0.m1

      Same behaviour is present in 2.6.0m1

      for me this is a serious error, I now have to look into finding the most recent version of spring that doesnt have this problem.

      Emil

      Comment

      Working...
      X