# Problem in latest.rss / Not a Valid Feed, it says!

**URL:** https://meta.discourse.org/t/problem-in-latest-rss-not-a-valid-feed-it-says/55466
**Category:** Support
**Created:** [January 10, 2017, 8:27am UTC](https://meta.discourse.org/t/problem-in-latest-rss-not-a-valid-feed-it-says/55466 "2017-01-10T08:27:59Z")
**Posts on this page:** 1
**Showing post:** 24

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [January 14, 2017, 5:45pm UTC](https://meta.discourse.org/t/problem-in-latest-rss-not-a-valid-feed-it-says/55466/24 "2017-01-14T17:45:49Z")

</div>

@codinghorror, I can now confirm this is happening due to the `default locale` being changed in Admin \> Settings. When I select Persian, it adds the `<language>fa_IR</language>` to the RSS feed output. Switching it back to English, puts it back to `<language>en</language>`.

Based on [List of ISO 639 language codes - Wikipedia](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes), it seems the appropriate code for Persian is simply `fa`, I’m not sure why `_IR` is being appended to it.

When I take the RSS output and plug it directly into the validator, changing `fa_IR` to `fa`, it marks it as Valid RSS.

With all that said, it seems this is a valid bug. I also confirmed using other languages (I choose at random, and have no idea what they were), were all using 2 character codes which made them valid as well.

Other locales that exhibit this same issue

- bs\_BA (should be bs?)
- fa\_IR (should be fa, per is also valid - ISO 639-2/B)
- nb\_NO (should be nb?)
- pl\_PL (should be pl?)
- pt\_BR (should be pt?)
- tr\_TR (should be tr?)
- zh\_CN (should be zh?)
- zn\_TW (should be zh?)

I wonder if the quick fix for this is to only take the first two characters for the `<language>` element in the RSS feed.

---

_[View the full topic](https://meta.discourse.org/t/problem-in-latest-rss-not-a-valid-feed-it-says/55466)._
