Markup files with UTF-8-BOM encoding is not supported by Enonic XP (With BOM XML files the application won’t start and BOM HTML breaks Content Manager).
If possible can you look into this and possible add support for UTF-8-BOM encoded files in Enonic XP?
You say that BOM encoding in HTML files break Content Studio. Is the page rendered correctly outside of CS?
Does it just fail while editing in Content Studio?
Breaking Content Studio was a lie. Do the following to replicate the issue:
Create a part view with (HTML) BOM encoding. Add the part to a page (everything is fine). Publish the page and reload, now you can’t select the part or see the part in the Components Panel (it is visible on the page (and stored)).
Are you certain it’s not the parent region code that is wrong?
Sometimes when I make a special page or layout I make mistakes and forget stuff that Content Studio depends on.
Look on a page that works. Notice how some html elements have special data attributes like data-portal-region=“main”.
Parts should have data-portal-component-type=“part”.
@aro Perhaps our postprocess doesn’t figure out where to apply data-portal-component-type=“part” when the encoding is BOM?