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

Using '#' in PDFUtil.generatePDFFromHTML causes everything after the # to not print #17

Closed
GrullonD opened this issue Mar 17, 2021 · 3 comments
Assignees

Comments

@GrullonD
Copy link

For example:
"The cat# in the hat" will show as "The cat". Is there a work around to this? Currently can't use Unicode because of this.

@GrullonD
Copy link
Author

For people looking. The work around is to replace "#" with "%23"

@tejpratap46 tejpratap46 self-assigned this Mar 17, 2021
@tejpratap46
Copy link
Owner

tejpratap46 commented Mar 17, 2021

@GrullonD have you found any reason for this or any other cases where it fails?

I will look into this anyway.

tejpratap46 pushed a commit that referenced this issue Mar 20, 2021
@tejpratap46
Copy link
Owner

Reason is still unknown, looks like an Android's Internal implementation issue.
Tested With other Url Encoded characters ">@#&=*+-_.,:!?()/~'%", everything looks to be fine.

For now i fixed this issue by replabce all occurances of '#' with '%23' as suggested by @GrullonD
Thank you @GrullonD for issue.

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