Pārlūkot izejas kodu

727 added charset parameter

Mapper required for charset parameter to be
passed to it, in order for Japanese characters
to render properly.
James Yen 11 gadi atpakaļ
vecāks
revīzija
5970b9ecae
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      hapi/app.js

+ 1 - 1
hapi/app.js

@@ -9,7 +9,7 @@ var cluster = require('cluster'),
 	mongoose = require('mongoose'),
 	async = require('async'),
 	conn = mongoose.connect('mongodb://localhost/hello_world'),
-	connMap = { user: 'benchmarkdbuser', password: 'benchmarkdbpass', database: 'hello_world', host: 'localhost' };
+	connMap = { user: 'benchmarkdbuser', password: 'benchmarkdbpass', database: 'hello_world', host: 'localhost', charset: 'utf8' };
 
 var WorldSchema = new mongoose.Schema({
 		id          : Number,