This is an archived forum post. The information may be outdated. Contact us if you have any
questions.
CovertHtml with Ruby Api gives undefined method `ord' for nil:NilClass
jimcode
wrote on 2013-10-15:
Hi I get the followng error when calling the ConvertHtml method from my code with a HTML string.
If I do a simple test string e.g. "<p>test</p>" it works but with the full complex HTML I need to putput I get the error but can't see where to look to firgure out what I am doing wrong.
This seems to be to do with UTF-8 encoding. When I pass a normal string it works (and has ASCII encoding) but passing the output from a rails view which is UTF-8 it gives the above error.