apicurito
apicurito copied to clipboard
Character encoding problem
When I write descriptions with french character, the saved file is correct . But when I re-open it , special characters are not correctly loaded.
example : é becomes é
Maybe an utf-8 reading issue ?
I encountered a similar issue when writing emoji in our docs
Any update on this issue ?
Hi @jeromedemangel , I'm looking into the issue now.
I'm not able to reproduce the issue. What I did:
- Created a new OpenAPI schema.
- Added an
éand🔥characters to the description. - Saved the files:
openapi: 3.0.2
info:
title: New API
version: 1.0.0
description: "A brand new API with no content. Go nuts!\né\né\n\U0001F525"
paths: {}
{
"openapi": "3.0.2",
"info": {
"title": "New API",
"version": "1.0.0",
"description": "A brand new API with no content. Go nuts!\né\né\n🔥"
},
"paths": {}
}
- Reopened them both in the editor:
Could you provide more detailed steps to reproduce the issue? Possibly providing the saved files that contain the problem. Is the issue occurring if you try it with the Apicurito editor on the masterbranch? Thanks.
Example
openapi: 3.0.2
info:
title: MyAPI
version: 1.0.0
description: Hello Jérôme
import this content then export, we obtain
openapi: 3.0.2
info:
title: MyAPI
version: 1.0.0
description: Hello Jérôme
then try to import this new file, Apicurio say
Error Detected! Error parsing OpenAPI file. Perhaps it is not valid YAML?