hexadecimal value 0x{whatever}, is an invalid character

Topics: Business Logic Layer
Oct 4, 2014 at 6:56 PM
I am using BE.NET 2.5 and BE.NET 3.1

This bug still exists in version 3.1

I am trying to import my blog using BlogML then suddenly BE.NET crashed

"hexadecimal value 0x08, is an invalid character"

I downloaded the BE.NET 2.5 source code and traced the error and found it here

BlogMLExportHandler.cs

AddPostContent() line 271

writer.WriteCData(post.Content)

here's my simple workaround ....

Sanitize the string first to be safe for XML export.

That's all. Hope BE.NET guys could make a better version of string sanitizer.