B4J Question WebSocket's Jetty and Special Characters - Error

David Meier

Active Member
Licensed User
Longtime User
After having tried hard before sending off the posting I found it out shortly after:
In the webpage that holds the form, the charset needs to be correct. To be safe I guess it needs to be equal to the setting in the b4j module though with me it works without setting anything in the b4j script:

Code in webpage:
HTML:
<head>
<meta charset="UTF-8">
</head>

In script:
B4X:
resp.CharacterEncoding = "UTF-8"

Regards

David
 
Upvote 0

Ormente

Member
Licensed User
Longtime User
That's it. You could also have solved it by adding an attribute to the <form> :
HTML:
<FORM id = "form1" action="/FormExampleHelper" method="post"  accept-charset="UTF-8">
 
Upvote 0
Top