From af9bc25660468cd88c2cdd85aa98eeb09c518004 Mon Sep 17 00:00:00 2001 From: Harvey Kandola Date: Wed, 27 Feb 2019 13:10:19 +0000 Subject: [PATCH] PlantUML to force UTF-8 encoding Should Fix #213 --- domain/section/plantuml/plantuml.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/domain/section/plantuml/plantuml.go b/domain/section/plantuml/plantuml.go index e803dd04..95166e51 100644 --- a/domain/section/plantuml/plantuml.go +++ b/domain/section/plantuml/plantuml.go @@ -107,7 +107,7 @@ func (p *Provider) generateDiagram(ctx *provider.Context, data string) string { }} client := &http.Client{Transport: transport} - resp, _ := client.Post(org.ConversionEndpoint+"/api/plantuml", "application/text", bytes.NewReader([]byte(data))) + resp, _ := client.Post(org.ConversionEndpoint+"/api/plantuml", "application/text; charset=utf-8", bytes.NewReader([]byte(data))) defer func() { if e := resp.Body.Close(); e != nil { fmt.Println("resp.Body.Close error: " + e.Error())