Users reported that after upgrading to 2.0.0.beta10~git49.9f422c93f6, RSS feed imports began stripping apostrophes and quotes from posts, affecting both new and older content Patrick_David. darix identified two issues: Discourse re-fetched older posts during the upgrade, exposing the bug, and typography marks were lost across recent posts—likely due to misinterpreted UTF-8 encoding. techAPJ reverted a recent UTF-8 encoding change that caused the issue, restoring proper formatting after reprocessing. He explained the original change was intended to handle malformed encodings and prevent job exceptions techAPJ. darix speculated that locale settings (e.g., LC_ALL=en_US.UTF-8) might affect how the raw feed string is parsed, suggesting the re-encode should have been a no-op if UTF-8 was already correct. A PR with a proper fix was submitted by @gerhardtechAPJ, and the topic was closed pending further issues.
when upgrading from 2.0.0.beta9+git0 to the version mentioned above discourse decided it needs to refetch/rerender a lot of older posts from the RSS feed. This is how we noticed the 2nd bug
It seems we lost at least all typography markers. also in our recent posts. The import category can be seen here PIXLS.US - discuss.pixls.us
It smells a bit like “RSS feed despite being sent with the correct headers is not seen/read as utf-8 encoded string so that the reencoding with the replace option strips utf-8 encoded chars.”
Since the content was updated/changed the topic got updated as per this code. Now that I reverted the code, the topic will be updated again with proper formatting.
ok I patched out the “not recently polled” check for a moment. triggered the sidekig job and all our posts are good again.
Why was this reencode added in the beginning? I will debug later why the raw_feed string isnt utf-8 encoded. then the reencode should have been a noop no?