Quantcast
Channel: SCN : All Content - PowerBuilder Developer Center
Viewing all articles
Browse latest Browse all 2935

FileWrite

$
0
0

Regards.

 

I use:

 

li_file = FileOpen (ls_path + ls_file, LineMode!, Write!, LockReadWrite!, Replace!)

 

When i write:

 

ls_xml = '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><name>QUÍMICO'

 

if FileWrite (li_file, ls_xml) = -1 then

  MessageBox("Error", "error", StopSign!)

end if

 

The result is: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><name>QU΍ICO

 

But if i write:

 

ls_xml = "<?xml version='1.0' encoding='UTF-8' standalone='yes'?><name>QUÍMICO"

 

The result is: <?xml version='1.0' encoding='UTF-8' standalone='yes'?><name>QUÍMICO

 

WHY???


Viewing all articles
Browse latest Browse all 2935

Trending Articles