Skip to content
This repository has been archived by the owner on Aug 25, 2020. It is now read-only.

Can MarkdownView provide loadDataWithBaseURL? #4

Closed
bsaelim opened this issue May 20, 2013 · 3 comments
Closed

Can MarkdownView provide loadDataWithBaseURL? #4

bsaelim opened this issue May 20, 2013 · 3 comments

Comments

@bsaelim
Copy link

bsaelim commented May 20, 2013

I wonder if MarkdownView can provide a constructor like this that one could use to display unicode?

loadDataWithBaseURL()

For example, in WebView one can do:

mywebView.loadDataWithBaseURL(null, "some unicode string", "text/html", "utf-8", null);

I think we would have to replace "text/html" with something else in case of markdown but I'm not sure which...

@falnatsheh
Copy link
Owner

MarkdownView internally uses loadDataWithBaseURL and passes "UTF-8" for encoding (line). If you want to load a UTF-8 string you could use markdownView.loadMarkdown("##こんにちわ"). If you have any issue loading utf8 characters let me know.

@bsaelim
Copy link
Author

bsaelim commented May 21, 2013

Thanks a lot. Now it works. Turn out I was using the old jar file.

Billy

MarkdownView internally uses loadDataWithBaseURL and passes "UTF-8" for
encoding (linehttps://github.com/falnatsheh/MarkdownView/blob/master/MarkdownView/src/us/feras/mdv/MarkdownView.java#L136).
If you want to load a UTF-8 string you could use
markdownView.loadMarkdown("##�$B$3$s$K$A$o�(B"). If you have any issue loading utf8
characters let me know.

�$B!=�(B
Reply to this email directly or view it on
GitHubhttps://github.com//issues/4#issuecomment-18176921
.

@falnatsheh
Copy link
Owner

Awesome, glad I could help!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants