Hi Christian,
thank for your answer, but the thing is stranger than I thinked.

my software saves a lot of excel files, related to different persons, so I' 
didn't notice that the FIRST excel with an accented char is saved correctly, 
and subsequent files with accented chars give me the error.

I have prepared a short example, with the creatin and save of two excel in 
seauence, the first is saved and the second throws an error.

VERY STANGE!

here is the code:

  dim book as XLBookMBS
  dim foglio as XLSheetMBS
  book = new XLBookMBS(false)
  book.SetLocale "it_IT.UTF-8"
  foglio = book.AddSheet("aaa")
  call foglio.WriteString 1, 0, "aaaa"
  if not book.Save(f.Child("aaaà.xls")) then
    MsgBox "Failed to create file."+EndOfLine+EndOfLine+book.ErrorMessage
  end if
  
  book = new XLBookMBS(false)
  book.SetLocale "it_IT.UTF-8"
  foglio = book.AddSheet("aaa")
  call foglio.WriteString 1, 0, "aaaa"
  if not book.Save(f.Child("bbbà.xls")) then
    MsgBox "Failed to create file."+EndOfLine+EndOfLine+book.ErrorMessage
  end if

regards,

     Giulio

Il giorno 27/set/2013, alle ore 12:27, Christian Schmitz 
<[email protected]> ha scritto:

> 
> Am 27.09.2013 um 11:17 schrieb Giulio Mastrosanti <[email protected]>:
> 
>> 
>> book.SetLocale "en_US.UTF-8"
> 
> 
> I put this one
> 
>  book.SetLocale "de_DE.UTF-8"
> 
> right after constructor and it works.
> 
> Greetings
> Christian
> 
> -- 
> Read our blog about news on our plugins:
> 
> http://www.mbsplugins.de/
> 
> _______________________________________________
> Mbsplugins_monkeybreadsoftware.info mailing list
> [email protected]
> https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Reply via email to