Openfire: Solves the garbled Problem

Source: Internet
Author: User
Tags odbc connection

After openfire is deployed, Chinese characters are garbled During User Creation and offline message sending. To solve this problem, you need to configure both openfire and MySQL.

First, on the openfire end, specify the ODBC connection string to contain? Useunicode = true & characterencoding = utf8 & charset = utf8 & charactersetresults = utf8

Then, you need to determine the encoding variables in MySQL. You can run the show variables like 'Char % 'command to view the variables. If character_set_server = Latin1, you can modify the my. CNF file and add default-character-set = utf8 in [mysqld.

Restart openfire and MySQL.

 

PS: To view UTF-8 content in the MySQL command environment, run the following command: Set names utf8;

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.