Thanks for replying, but I received error message return after encode with 
UTF-8.


java.lang.IllegalArgumentException: Invalid character found in the request 
target. The valid characters are defined in RFC 7230 and RFC 3986
    at 
org.apache.coyote.http11.Http11InputBuffer.parseRequestLine(Http11InputBuffer.java:474)
    at 
org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:294)
    at 
org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
    at 
org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:834)
    at 
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1415)
    at 
org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
    at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at 
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
    at java.lang.Thread.run(Thread.java:745)




On Wednesday, April 3, 2019 at 2:56:13 PM UTC+2, Thomas wrote:
>
> This is because it isn't the request content but URL get parametters
> So you should probably do something like:
>
> String nickName="网名";
> String utf8nickName = new String(nickName.getBytes(), "UTF-8"); 
> String url =“http://localhost:8080/updateUser/+userID+
> "/"+utf8nickName +"/"+email+”/“; 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/ea1c2fd2-0fca-45a4-b46c-a0e9e0ac051d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to