Custom Upload Error Message cannot handle UTF-8

asked 2013-07-26 14:56:57 +0800

redsofa gravatar image redsofa
2 2

updated 2013-07-26 14:58:53 +0800

I am using the upload functionlity of a button and limit the size. Now I want to show a custom error message with the help of extending AuUploader. This works only half way because the error message scrambles the Umlauts. I tried everything like %FC or \u00FC or HTML Entity (it is not showing up correct here: it is Ampersand Uuml Semicolon) Ü but nothing is working.

All other labels on the website are showing Umlauts with no problem.

So what can I do?

delete flag offensive retag edit

1 Answer

Sort by » oldest newest most voted

answered 2013-08-01 03:48:39 +0800

RaymondChao gravatar image RaymondChao
386 1 4

Hello redsofa:
I just put the Ü in the string and it works fine, like the following code:

    public class MyUploader extends AuUploader {
       protected String handleError (Throwable ex) {                 
          if(ex instanceof SizeLimitExceededException){             
             SizeLimitExceededException e = (SizeLimitExceededException) ex;            
             return " It's Ü ";       
          return super.handleError(ex);     

Is this the message what you want to show ? Did you set the project's text file encoding to UTF-8?

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

1 follower



Asked: 2013-07-26 14:56:57 +0800

Seen: 11 times

Last updated: Aug 01 '13

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More