public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* Edk2 uni file encoding
@ 2018-11-07 23:00 Sean Brogan
  2018-11-08  6:00 ` Gao, Liming
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Sean Brogan @ 2018-11-07 23:00 UTC (permalink / raw)
  To: edk2-devel@lists.01.org

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





^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-11-08 16:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-07 23:00 Edk2 uni file encoding Sean Brogan
2018-11-08  6:00 ` Gao, Liming
2018-11-08  7:10   ` Sean Brogan
2018-11-08 16:46     ` Kinney, Michael D
2018-11-08 16:55       ` Oram, Isaac W
2018-11-08 13:38 ` Laszlo Ersek
2018-11-08 16:42 ` Leif Lindholm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox