Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

text_helper -> ascii_to_entities function truncates string if the very last character is high ascii #133

bitbucket-import opened this Issue Aug 19, 2011 · 1 comment


None yet
2 participants

The text_helper function ascii_to_entities truncates the string if the very last character is high ascii.

assume that $ is a high ascii
ascii_to_entities('$helloworld$') output is '$helloworld'

the 'for loop' terminates before the last entity is written to 'out'

ururk commented Mar 16, 2012

I've noticed this behavior with an ” as the very last character. As a temporary fix, I append a space before calling the function, then a trim afterwards.

@narfbg narfbg closed this in 40235e6 Jan 9, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment