> On May 22, 2015, at 1:38 PM, KSilva <kaleb.si...@iatecam.org.br> wrote:
> 
> Andrew
> 
> 
> 
> The program writes in the file, but when i will see in "gedit" say : ERROR
> OPEN : ENCODE UNIDENTIFIED
> 
> I try put: LATIN1, UTF8, Unicode, but doesn't worked.
> 

EFI is UCS-2, which is a subset of UTF-16. 

> If I want write "APOLOGY"
> 
> With the EFI SHELL showed: edit text.txt
> I will see: A
> 
> But if I open the file created with LibreOffice I will see :
> 
> 
> ######A####P####O####L####O####G####O####Y######
> ######A####P####O####L####O####G####O####Y######
> ######A####P####O####L####O####G####O####Y######
> 
> 
> 
> I think which the problem is in the header of the file .
> 

You probably need a byte order mark: 
http://en.wikipedia.org/wiki/Byte_order_mark#UTF-16

EFI_UNICODE_BYTE_ORDER_MARK is defined in 
https://svn.code.sf.net/p/edk2/code/trunk/edk2/MdePkg/Include/Protocol/UnicodeCollation.h
 and it is used by the shell. 

Thanks,

Andrew Fish

> The print with %s work...and its a debug form.
> 
> 
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud 
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> _______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/edk2-devel


------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to