---
title: "Mysql中文是乱码(问号)的问题"
author: "zhou_wu"
date: "2010-08-25T18:30:41Z"
tags: []
categories: ["数据库"]
slug: "mysql"
draft: false
lastmod: "2010-08-25T18:30:41Z"
id: 747136
url: "https://leesmart.iteye.com/blog/747136"
---

场景:部署一个java开发的bbs项目，数据库用的Mysql。其中有sql的导入语句，我执行了但是读出来的中文是???，Mysql里看的也是？？？

解决方案：
在执行sql语句简表的时候，加上默认的编码集
create table article 
(
   ……
)
DEFAULT CHARSET=utf8;