You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to parse or unmarshal json with this emoji in particular: 🌶️ , Odin gives the error "Odin/core/encoding/json/parser.odin(357:16) Invalid slice indices 0:8 is out of range 0..<7". As far as I can tell, all other emojis I have tried work fine.
Steps to Reproduce
Just run this
package main
import "core:encoding/json"
import "core:fmt"
main :: proc() {
data, err := json.parse_string({"value":"🌶️"})
fmt.println(data.(json.Object)["value"])
}
The text was updated successfully, but these errors were encountered:
Context
Odin: dev-2023-09:f9657982
OS: openSUSE Tumbleweed, Linux 6.3.9-1-default
CPU: AMD Ryzen 7 5800X 8-Core Processor
RAM: 31979 MiB
When trying to parse or unmarshal json with this emoji in particular: 🌶️ , Odin gives the error "Odin/core/encoding/json/parser.odin(357:16) Invalid slice indices 0:8 is out of range 0..<7". As far as I can tell, all other emojis I have tried work fine.
Steps to Reproduce
Just run this
package main
import "core:encoding/json"
import "core:fmt"
main :: proc() {
data, err := json.parse_string(
{"value":"🌶️"}
)fmt.println(data.(json.Object)["value"])
}
The text was updated successfully, but these errors were encountered: