realbasic-nug.fr
[Top] [All Lists]

Encoding

To: REALbasic NUG French <realbasic-nug dot fr at lists dot realsoftware dot com>
Subject: Encoding
From: Antoine Crêtaux <antoine at cretaux dot fr>
Date: Mon, 6 Aug 2007 14:43:12 +0200
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug dot fr at lists dot realsoftware dot com
References: <0A8B1621-BC31-4996-9628-69A66CD91B33 at mac dot com> <15F44722-03B3-43E1-80A0-E8B39F34E845 at realsoftware dot fr> <807247DC-B01B-4905-ACFE-E24184D4CD1A at mac dot com> <3EBF48E1-EBAD-4A20-8EBA-6B863CC67BA8 at realsoftware dot fr> <047BA079-95C3-41A8-B9A4-BC4B64AA92B9 at mac dot com>
Je croyais avoir maitrisé le probleme mais voilà ce que j'obtiens :
mon code:

  fichier = getfolderItem("Essai")
  if fichier <> nil and fichier.exists then
    fichier.delete
  End if
  LesDatas = "éèàç"
  textout = fichier.createTextFile
  textout.write ConvertEncoding(LesDatas,encodings.uTF8)
  textout.close

quand j'ouvre le fichier sur le finder :

éèàç

j'ai esayé sans modifier l'encoding et ce la fait pareil




<Prev in Thread] Current Thread [Next in Thread>