Ticket #88 (closed defect: fixed)

Opened 19 months ago

Last modified 19 months ago

character encoded in latin1 cause sm restart.

Reported by: marship Owned by: marship
Priority: major Component: sm
Version: 2.1.6 Keywords:
Cc: Tracforge_linkmap:
Blocking: Blocked By:

Description

I have many friends(about 200) and some friend use strange nickname. some of the character in their name make jabberd behave strange. I am not sure what the character is . But the router said

ROUT: Tue Jun 5 13:54:21 2007 [notice] [127.0.0.1, port=53901] error: XML parse error (not well-formed (invalid token))

Then the sm offline and several seconds later it online again.

I tried to modify some of them's name then a problem solved.

Now can I config the jabberd use 'latin1'(ISO-8859-1) as the default encoding of the XML which is used to transfer information between jabberd's components? thanks.

Change History

Changed 19 months ago by smoku

What do you mean by "sm offline"?

The XMPP encoding is defined to be UTF-8 and it's the only allowable encoding. You cannot use other (latin1) rncoding even if you declare it in XML header. It's being silently ignored, stream is parsed as UTF-8 and latin1 characters causes XML parse errors and stream closing.

Changed 19 months ago by marship

  • owner changed from smoku to marship
  • status changed from new to assigned

Thanks. I will change my mysql character encoding to utf-8 and try again.

Changed 19 months ago by smoku

  • status changed from assigned to closed
  • resolution set to fixed

(In [239]) Added DEFAULT CHARSET=UTF8 to tools/db-setup.mysql DB creation. Together with see #90 it fixes #88

Note: See TracTickets for help on using tickets.