Closed waterXu closed 6 years ago
What are the original words?
You can try to enter a certain amount of Chinese,You can see the problem recur.
I can reproduce it. I think it is caused by base64 encoding/decoding. I will investigate when I have a second.
Fixed
good!!!
hi~ The Mermaid Live Editor "LINK TO VIEW" function work good,but click "DOWNLOAD SVG " button output svg is not work!I guess it's also Chinese.
What do you mean by "is not work"? I just tried and it worked for me.
Could you please force refresh your browser and try again?
sorry, I mean I open the download svg in chrome not work good. The sequenceDiagram shows not all. I read the svg file, I guess the [ processWithChecker方法检查是否有需要更新的资源 ] was the result. I received a error report: This page contains the following errors: error on line 360 at column 10609: PCDATA invalid Char value 8 Below is a rendering of the page up to the first error.
I cannot reproduce the issue. Take this sequence diagram for example: https://mermaidjs.github.io/mermaid-live-editor/#/edit/c2VxdWVuY2VEaWFncmFtCmxvb3AgZXZlcnkgZGF5CiAgICBBbGljZS0-PkpvaG46IEhlbGxvIEpvaG4sIGhvdyBhcmUgeW91PwogICAgSm9obi0tPj5BbGljZTog6Led56a75LiK5qyh5LiL6L296LWE5rqQ5piv5ZCm6LaF6L-HMeWkqeaXtumXtOi3neemu-S4iuasoeS4i-i9vei1hOa6kOaYr-WQpui2hei_hzHlpKnml7bpl7QhCmVuZAo
I can download the svg and open it in Chrome without problem.
Could you please provide a link to your sequence diagram?
I confirm that I can reproduce the error:
This page contains the following errors:
error on line 360 at column 10648: PCDATA invalid Char value 8
Below is a rendering of the page up to the first error.
I did some research and it seems that not all characters are allowed in XML:
That is important finding. I will take a look when I have some time.
In your code alt 方法检查是否有需要更新的资源
, there are two characters between alt
and 方
, one of them is invisible, zero-width and invalid for XML.
And from above, you can see that GitHub cannot display the string properly either. So the solution is: make there are no weird white space or invisible characters in you text.
Closing. Feel free to create a new issue if you still have questions.
Some Chinese words have been shown to be messy,like��。 For example : alt 对比距离上次下载资源是否超过1天时间 show:alt 对比距离上次下载资源�� System : MacOS