Results 1 to 3 of 3

Thread: STS 2.5.2 release language problems

Hybrid View

  1. #1

    Default 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. #2

    Default 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.

  3. #3

    Default 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

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •