Dish translation now obeys UTF8 rules

This commit is contained in:
n1474335 2018-01-06 16:02:50 +00:00
parent 4588cd151c
commit 28c83fa921
2 changed files with 11 additions and 8 deletions

View file

@ -85,8 +85,8 @@ Chef.prototype.bake = async function(input, recipeConfig, options, progress, ste
return {
result: this.dish.type === Dish.HTML ?
this.dish.get(Dish.HTML) :
this.dish.get(returnType),
this.dish.get(Dish.HTML, !options.treatAsUtf8) :
this.dish.get(returnType, !options.treatAsUtf8),
type: Dish.enumLookup(this.dish.type),
progress: progress,
duration: new Date().getTime() - startTime,