Is there a definitive answer for the file encoding for all UNI files in edk2?
If not I would like to propose one.  Incorrect encoding causes tool issues and 
is something we can easily check for and fix.

Proposal: All UNI files in edk2 should be


  1.  UTF-8
Or

  1.  Use a BOM and be UTF-16

https://en.wikipedia.org/wiki/Byte_order_mark

Results from searching edk2:
1 - UTF-16 LE BOM file: 
EdkCompatibilityPkg\Compatibility\FrameworkHiiOnUefiHiiThunk\Strings.uni
919 - Without BOM and decoded as UTF-8

Thoughts?

Future question:  Can we make rule for all other standard file types (c, h, 
dec, dsc, fdf, inf,)?

Thanks
Sean



_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to