Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #9  
Old 11-23-2018, 02:08 PM
macropod's Avatar
macropod macropod is offline Save as txt : How to detect if Unicode encoding is required? Windows 7 64bit Save as txt : How to detect if Unicode encoding is required? Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,382
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by Patrice Dargenton View Post
With entire book, your code is very very slow...
Exactly what do you expect with a large document? To complain about the speed betrays a totally unrealistic expectation. As even VBorNotVB said, the code:
Quote:
works really well and it's fast too
Quote:
Originally Posted by Patrice Dargenton View Post
it doesn't works: there are false positive, saying that the document contains Unicode characters whereas it is false.

Your code says that for example character É is a Unicode character, this is ambiguous, because it can finally be saved using ANSI encoding.
Your fault-finding is rude! You can't reasonably expect a test for Unicode characters to say a given Unicode character isn't Unicode just because there's an ASCII equivalent to represent the same character (e.g. É). If you don't want to use a Unicode character when there's an ASCII equivalent, that's your responsibility, but don't go criticizing others when the solution is correct for the problem as described and any problems are due to your poor description of what you want to achieve.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
 

Tags
activedocument.saveas, encoding, txt



Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro help - converting proprietary encoding to unicode, keep formatting kmawhood Word VBA 3 04-29-2016 04:06 PM
Save as txt : How to detect if Unicode encoding is required? Does 'Save as Unicode text' equal UTF-8 Chayes Excel 1 07-20-2012 03:07 AM
Save as txt : How to detect if Unicode encoding is required? Custom Dictionary & Unicode encoding? markus staubmann Word 3 03-28-2012 05:23 AM
Save as txt : How to detect if Unicode encoding is required? Save Word doc in unicode html (utf-8) rybrns Word 5 09-26-2011 02:18 PM
Save as txt : How to detect if Unicode encoding is required? Unicode Encoding Type Rose44 Excel 2 08-09-2009 09:05 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 07:29 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft