1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-24 15:49:44 +02:00

PlantUML to force UTF-8 encoding

Should Fix #213
This commit is contained in:
Harvey Kandola 2019-02-27 13:10:19 +00:00
parent 66003dac21
commit af9bc25660

View file

@ -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())