Skip to content

scaladoc generate garbled code in multilingual. #17546

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
yankun1992 opened this issue May 20, 2023 · 5 comments
Open

scaladoc generate garbled code in multilingual. #17546

yankun1992 opened this issue May 20, 2023 · 5 comments

Comments

@yankun1992
Copy link

yankun1992 commented May 20, 2023

Compiler version

3.2.2, 3.3.0-RC6

Minimized code

I hava blog file 2023-05-19-hello-world-blog.zh.md in directory _blog/_post and it content is:

---
layout: main
author: Yan Kun
title: 你好世界
subTitle: use scaladoc to build blog system
date: 2023-05-19
---

# Start

这是一个用于测试的博客。

Output

The generated code is

<title>�������</title>
...
<h1 class="h500"><a href="#start" class="anchor"></a>Start</h1> 
<p>����һ�����ڲ��ԵIJ��͡�</p> 

图片

By the way, the picture still doesn't appear right. It shadow the document menu #17217

@yankun1992 yankun1992 added itype:bug stat:needs triage Every issue needs to have an "area" and "itype" label labels May 20, 2023
@WojciechMazur WojciechMazur added area:doctool and removed stat:needs triage Every issue needs to have an "area" and "itype" label labels May 22, 2023
@Dedelweiss
Copy link
Contributor

Hello @yankun1992, thank you for the Issue. I tried to reproduce the problem but I don't have the same result. Is it possible to have your configuration for the build or the layout main that you use ?

@Dedelweiss
Copy link
Contributor

As you can see from the results of my test, the problem seems to have been corrected.

Code:

# Start

这是一个用于测试的博客

Result:

Screenshot 2023-07-11 at 15 21 13

@ckipp01

@ckipp01
Copy link
Member

ckipp01 commented Jul 11, 2023

Please do report back with your configuration if you're still hitting on this with the latest version @yankun1992, but seeing what @Dedelweiss posted this seems to be fixed. I'll close for now and we can re-open if it's still an issue.

@ckipp01 ckipp01 closed this as completed Jul 11, 2023
@yankun1992
Copy link
Author

Hi @Dedelweiss @ckipp01. I apologize for not noticing your replies. The problem is something I observed in one of my projects at https://github.com/otavia-projects/otavia

Using the command . /millw docs.site it is possible to generate the docs. And the output is in out/docs/site.dest

I have observed that if I run it on linux it generates correct results (see page), but on windows 10 it generates garbled code.

The generated code snippet like

<h1 class="h500"><a href="#start" class="anchor"></a>Start</h1> 
<p>����һ�����ڲ��ԵIJ��͡�</p> 

@Dedelweiss
Copy link
Contributor

Hi @Dedelweiss @ckipp01. I apologize for not noticing your replies. The problem is something I observed in one of my projects at https://github.com/otavia-projects/otavia

Hello @yankun1992, no problem at all.

I have observed that if I run it on linux it generates correct results (see page), but on windows 10 it generates garbled code.

So that explains why I didn't get the same results. I will re-open the issue 👍

@Dedelweiss Dedelweiss reopened this Jul 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants