-
-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to convert the comment field to Chinese if the comment field is Unicode #16
Comments
Hi! Please can you share dialect (Postgres, MySQL, etc), database version and CREATE TABLE statement for your table? |
Local usage example:
CREATE TABLE statement:`/* Source Server : localhost Target Server Type : MySQL Date: 14/05/2021 16:53:14 SET NAMES utf8mb4; -- Table structure for log DROP TABLE IF EXISTS -- Records of log SET FOREIGN_KEY_CHECKS = 1; model` interface logAttributes { @table({ tableName: 'log', timestamps: false }) @column({ type: DataType.INTEGER, comment: '\u65E5\u5FD7\u7C7B\u578B' }) @column({ type: DataType.STRING(255), comment: '\u8BBF\u95EE\u5730\u5740' }) @column({ field: 'user_id', allowNull: true, type: DataType.STRING(255), comment: '\u7528\u6237id' }) @column({ allowNull: true, type: DataType.STRING(10), comment: '\u8BF7\u6C42\u65B9\u6CD5' }) @column({ field: 'original_url', allowNull: true, type: DataType.STRING(255), comment: '\u8BF7\u6C42\u63A5\u53E3' }) @column({ type: DataType.STRING(500), comment: 'token' }) @column({ allowNull: true, type: DataType.STRING(50), comment: '\u5750\u6807' }) @column({ allowNull: true, type: DataType.STRING(50), comment: '\u6240\u5728\u5730' }) @column({ field: 'update_time', type: DataType.DATE(6), comment: '\u6700\u540E\u66F4\u65B0\u65F6\u95F4' }) @column({ field: 'delete_time', allowNull: true, type: DataType.DATE(6), comment: '\u5220\u9664\u65F6\u95F4' }) I want to make the comment name in normal character than the Unicode code. Thank you! |
can you fix it now? |
Hi! |
How to convert the comment field to Chinese if the comment field is Unicode
comment: "\u521B\u5EFA\u65F6\u95F4"
The text was updated successfully, but these errors were encountered: