Convert common utf-8 chars to html entities, this is beautifull (but the code not) for servers that don‘t have utf-8 fonts for java. Is a dead simple workaround for avoid losing time.

Methods
Public Instance methods
encode_entities(text)

Convert common utf-8 chars to html entities

    # File lib/utils/html_entities.rb, line 9
 9:       def encode_entities(text)
10:         map = {
11:           "'" => "#145",   # ' This is converted for java
12:           "’" => "rsquo",  # ’
13:           "°" => "deg",    # °
14:           "€" => "euro",   # €
15:           "–" => "ndash",  # –
16:           "©" => "copy",   # ©
17:           "«" => "laquo",  # «
18:           "®" => "reg",    # ®
19:           "»" => "raquo",  # »
20:           "à" => "agrave", # à
21:           "À" => "Agrave", # À
22:           "á" => "aacute", # á
23:           "Á" => "Aacute", # á
24:           "â" => "acirc",  # â
25:           "Â" => "Acirc",  # Â
26:           "ä" => "auml",   # ä
27:           "Ä" => "Auml",   # ä
28:           "Æ" => "AElig",  # Æ
29:           "æ" => "aelig",  # æ
30:           "ç" => "ccedil", # ç
31:           "Ç" => "Ccedil", # Ç
32:           "è" => "egrave", # è
33:           "È" => "Egrave", # È
34:           "é" => "eacute", # é
35:           "É" => "Eacute", # É
36:           "ê" => "ecirc",  # ê
37:           "Ê" => "Ecirc",  # Ê
38:           "ë" => "euml",   # ë
39:           "Ë" => "Euml",   # Ë
40:           "ì" => "igrave", # ì
41:           "Ì" => "Igrave", # Ì
42:           "î" => "icirc",  # î
43:           "Î" => "Icirc",  # Î
44:           "ï" => "iuml",   # ï
45:           "Ï" => "Iuml",   # Ï
46:           "ô" => "ocirc",  # ô
47:           "Ô" => "Ocirc",  # Ô
48:           "ö" => "ouml",   # ö
49:           "Ö" => "Ouml",   # Ö
50:           "ò" => "ograve", # ò
51:           "Ò" => "Ograve", # ò
52:           "ù" => "ugrave", # ù
53:           "Ù" => "Ugrave", # Ù
54:           "û" => "ucirc",  # û
55:           "Û" => "Ucirc",  # Û
56:           "ü" => "uuml",   # ü
57:           "Ü" => "Uuml"    # Ü
58:         }
59:         map.each { |k,v| text.gsub!("#{k}", "&#{v};")  }
60:         return text
61:       end