Skip to content
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

Unicode Error? #2

Open
Riccardo99 opened this issue Mar 4, 2015 · 1 comment
Open

Unicode Error? #2

Riccardo99 opened this issue Mar 4, 2015 · 1 comment

Comments

@Riccardo99
Copy link

Hi, I'm tried to parse a this markdown text to html:

As representações esquemáticas da força de atrito *f*𝒂𝑡 entre os pneus e a pista, em função da pressão *p* aplicada no pedal de freio, para carros sem ABS e com ABS, respectivamente, são:

And I got this error:

fatal error: high- and low-surrogate code points are not valid Unicode scalar values (lldb)

I think the error could be associated withing use special characters like: 𝒂 or 𝑡

Can someone fix this or help me with this problem?

Thanks :)

@kristopherjohnson
Copy link
Owner

The text-encoding handling in Markingbird isn't very good right now. While translating the C#/.NET code over to Swift, in some places I use NSString, and other places I use Swift's standard String, and when it goes down to the level of individual characters, it is treating them as 8-bit bytes, and not properly dealing with UTF8 sequences.

All I can suggest for now is to run it in a debugger to figure out where it is finding that error, and fix it, or re-implement the NSString/String handling. I may eventually do this myself, but don't know when.

kristopherjohnson added a commit that referenced this issue Dec 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants