apache / apache/grails-core

grails .gsp changes the 'ñ' to 'ñ' when it reaches the controller

Open
#13,350 8 comments 0 reactions 1 assignee Claimed by @guillermocalvo View on GitHub
status: awaiting feedback
Dominant language
Groovy
Stars
2.9k
Forks
975
Avg merge
1d 22h
Merged PRs (30d)
92

Description

### Expected Behavior

When I put characters with an accent or 'ñ' in some string field, instead of reaching the controller, the literal text arrives changed if they are special characters

### Actual Behaviour

I put a 'ñ, ó á é' in the string input text .gsp view...... and when they already travel to the controller, they have already changed to these values 'ñ , ó á é'..

### Steps To Reproduce

1._ bootrun proyect
2._ register like propietario with some special character ñ, ó, á, etc..
3._ and in the database you can see that they are not the same characters, they arrive at the controller already changed

### Environment Information

development, production

Grails Version: 6.1.1
JVM Version: 11.0.16
Groovy Version: 4.0.15
OS: Mac OS X
openjdk 11.0.21 2023-10-17 LTS
OpenJDK Runtime Environment Corretto-11.0.21.9.1 (build 11.0.21+9-LTS)
OpenJDK 64-Bit Server VM Corretto-11.0.21.9.1 (build 11.0.21+9-LTS, mixed mode)
intellij

### Example Application

_No response_

### Version

6.1.0

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.