It is currently Wed May 22, 2019 5:56 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: [PB5.70] Save txt file uses Windows-1258 format
PostPosted: Fri Mar 15, 2019 12:31 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Mar 10, 2013 3:01 pm
Posts: 616
Location: Portugal
Hello!

While exporting the list of duplicate words in Proofing Tool GUI
Code:
WriteString(1,t$+#LF$,#PB_UTF8)


I am saving in UTF-8 but Notepad++ says the file is in Windows-1258 format.

I tried to narrow it down but it only happens when I do it from inside PTG.


Top
 Profile  
Reply with quote  
 Post subject: Re: [PB5.70] Save txt file uses Windows-1258 format
PostPosted: Fri Mar 15, 2019 12:50 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Jun 22, 2003 7:43 pm
Posts: 365
Location: Germany, Saarbrücken
Maybe you have to write a BOM using WriteStringFormat().

_________________
Electronics, Crazy & Interesting Stuff, all that with text, image and sound? Click here!

The english grammar is freeware, you can use it freely - But it's not Open Source, i.e. you can not change it or publish it in altered way.


Top
 Profile  
Reply with quote  
 Post subject: Re: [PB5.70] Save txt file uses Windows-1258 format
PostPosted: Fri Mar 15, 2019 1:17 pm 
Offline
Addict
Addict
User avatar

Joined: Thu Jun 07, 2007 3:25 pm
Posts: 3554
Location: Berlin, Germany
marcoagpinto wrote:
I am saving in UTF-8 but Notepad++ says the file is in Windows-1258 format.

I tried to narrow it down but it only happens when I do it from inside PTG.

So the bug is in your "PTG" program, not in PureBasic.
Or maybe Notepad++ gives a wrong information.

_________________
Please excuse my flawed English. My native language is PureBasic.
Search
RSBasic's backups


Top
 Profile  
Reply with quote  
 Post subject: Re: [PB5.70] Save txt file uses Windows-1258 format
PostPosted: Sat Mar 16, 2019 1:03 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Mar 10, 2013 3:01 pm
Posts: 616
Location: Portugal
NicTheQuick wrote:
Maybe you have to write a BOM using WriteStringFormat().


It worked!

Thank you!


Top
 Profile  
Reply with quote  
 Post subject: Re: [PB5.70] Save txt file uses Windows-1258 format
PostPosted: Sat Mar 16, 2019 10:42 am 
Offline
Addict
Addict

Joined: Sun Sep 07, 2008 12:45 pm
Posts: 4195
Location: Germany
You are long enough in this forum.
You should know that this section is for bugs of PB and not for your bugs.

With a hex editor you where able to see that it is not a bug in PB.
And if you are not sure: ask first in 'Coding Questions'.


Top
 Profile  
Reply with quote  
 Post subject: Re: [PB5.70] Save txt file uses Windows-1258 format
PostPosted: Sat Mar 16, 2019 10:46 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Mar 10, 2013 3:01 pm
Posts: 616
Location: Portugal
infratec wrote:
You are long enough in this forum.
You should know that this section is for bugs of PB and not for your bugs.

With a hex editor you where able to see that it is not a bug in PB.
And if you are not sure: ask first in 'Coding Questions'.


Yes, I am terribly sorry :-(


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: skywalk and 17 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye