[BUG] Program comments generated from a discription containing multibyte characters described in the OpenAPI spec are garbled.
See original GitHub issueBug Report Checklist
- Have you provided a full/minimal spec to reproduce the issue?
- Have you validated the input using an OpenAPI validator (example)?
- What’s the version of OpenAPI Generator used?
- Have you search for related issues/PRs?
- What’s the actual output vs expected output?
- [Optional] Bounty to sponsor the fix (The program comment is garbled.)
Description
The description described in multibyte characters in OpenAPI Spec is garbled.
openapi-generator version
4.1.2
OpenAPI declaration file content or url
summary: 法人番号システム Web-API
description: 取得期間を指定して情報を取得するAPIです。
get:
tags:
- company
responses:
'200':
$ref: '#/components/responses/csv_unicode'
operationId: getCorporationByDiff
summary: 法人期間検索
description: 法人情報取得期間を元に登記法人の情報を検索することができます。
Command line used for generation
client go java
server php-laravel php-symfony go java
html html2 . . etc
Steps to reproduce
generate php-laravel program
/**
* ???????? Web-API
* # ???????? Web-API # ???????? Web-API???? Web-API??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
*
* The version of the OpenAPI document: 4.0.0
* Contact: houjinbangou-webapi@nta.go.jp
*
* NOTE: This class is auto generated by OpenAPI-Generator
* https://openapi-generator.tech
* Do not edit the class manually.
*
* Source files are located at:
*
* > https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/resources/php-laravel/
*/
Related issues/PRs
non
Suggest a fix
Fix garbled characters in multibyte characters
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:10 (4 by maintainers)
Top Results From Across the Web
OpenAPITools - Bountysource
Yuutakasan posted a $300 bounty to [BUG] Program comments generated from a discription containing multibyte characters described in the OpenAPI spec are garbled ......
Read more >OpenAPI Specification - Version 3.0.3 - Swagger
The OpenAPI Specification (OAS) defines a standard, language-agnostic interface to RESTful APIs which allows both humans and computers to discover and ...
Read more >RFC 2616: Hypertext Transfer Protocol -- HTTP/1.1
This specification defines the protocol referred to as "HTTP/1.1", ... included in some HTTP header fields by surrounding the comment text with parentheses....
Read more >OpenAPI Specification v3.1.0 | Introduction, Definitions, & More
The OpenAPI Specification (OAS) defines a standard, programming language-agnostic interface description for HTTP APIs.
Read more >Bug List - Bugs - Eclipse
This list is too long for Bugzilla's little mind; the Next/Prev/First/Last buttons won't appear on individual bugs. Hide Search Description.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
No problem. Glad to hear the issue has been resolved for you.
@wing328 @kilves @ackintosh I made my own docker image and ran the openapigenerator, but only en_US.UTF-8 was registered in the CentOS image of Docker. Therefore, garbled characters were generated.
Dockerコンテナ上でJavaプログラムを動かすときにLANG環境変数を設定すると日本語のファイル名が文字化けする問題 Japanese language file name is garbled when LANG environment variable is set when running Java program on Docker container ( japanese ) https://qiita.com/Targityen/items/f921c95e684810d7087f?fbclid=IwAR1rroPqXbXLfJYkEMkxDuUBjF8Wellulpwp82llvSK0D9ut9FIdnotkFbA
There was no problem with OpenAPIGenerator. I apologize to you for a fuss over.