A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Getting 'Smart Quotes' out of Access



 
 
Thread Tools Display Modes
  #1  
Old May 17th, 2010, 06:52 PM posted to microsoft.public.access
Mark H
external usenet poster
 
Posts: 19
Default Getting 'Smart Quotes' out of Access

Every week I export a txt file of a table out of Access to a third party
provider who converts it to an XML file for wide distribution and then upload
to various websites such as Amazon. I am having problems with lots of
characters being converted improperly, most significantly the apostrophes and
quotation marks. Is there a way I can 'clean' these out of my database (use a
different font such as Arial Unicode in the table?) or when I export the txt
file?
  #2  
Old May 17th, 2010, 07:19 PM posted to microsoft.public.access
Arvin Meyer [MVP][_2_]
external usenet poster
 
Posts: 2,310
Default Getting 'Smart Quotes' out of Access

Use Courier New. It's a monofont which doesn't even have formatted
characters. It should be the font automatically used by Notepad.
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.accessmvp.com
http://www.mvps.org/access


"Mark H" wrote in message
...
Every week I export a txt file of a table out of Access to a third party
provider who converts it to an XML file for wide distribution and then
upload
to various websites such as Amazon. I am having problems with lots of
characters being converted improperly, most significantly the apostrophes
and
quotation marks. Is there a way I can 'clean' these out of my database
(use a
different font such as Arial Unicode in the table?) or when I export the
txt
file?



  #3  
Old May 17th, 2010, 10:13 PM posted to microsoft.public.access
David W. Fenton
external usenet poster
 
Posts: 3,373
Default Getting 'Smart Quotes' out of Access

"Arvin Meyer [MVP]" wrote in
:

Use Courier New. It's a monofont which doesn't even have formatted
characters. It should be the font automatically used by Notepad.


I don't understand your instructions here.

Courier New has "smart quotes" in the font.

Secondly, Notepad does not use Courier New. I think it's using
Lucida Console, but I'm not sure on that. Whichever font it is, it
includes "curly quotes".

Even if the font doesn't include the curly quotes, changing the font
doesn't do anything to change the character encoding -- it will only
cause the offending characters to be replaced with a square block.

Choosing a font affects only display, not the actual encoding, which
has to be handled properly during the export and import process.

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
  #4  
Old May 18th, 2010, 02:11 AM posted to microsoft.public.access
david
external usenet poster
 
Posts: 34
Default Getting 'Smart Quotes' out of Access

Run an update query on the table before you run the export.

You can put both actions into a macro, and run the
macro to do the export. You can add a button to your
ribbon to run the macro to do the export.

Or, if you are using forms, you can add a button to a
form to run both actions.

(david)

"Mark H" wrote in message
...
Every week I export a txt file of a table out of Access to a third party
provider who converts it to an XML file for wide distribution and then
upload
to various websites such as Amazon. I am having problems with lots of
characters being converted improperly, most significantly the apostrophes
and
quotation marks. Is there a way I can 'clean' these out of my database
(use a
different font such as Arial Unicode in the table?) or when I export the
txt
file?



  #5  
Old May 19th, 2010, 02:36 AM posted to microsoft.public.access
Arvin Meyer [MVP][_2_]
external usenet poster
 
Posts: 2,310
Default Getting 'Smart Quotes' out of Access

"Excuse me, but my Notepad is using Courier New, and it doesn't have curly quotes" I think I set that up to match the font I use in the IDE code window.

--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.accessmvp.com
http://www.mvps.org/access
"David W. Fenton" wrote in message 36.97...
"Arvin Meyer [MVP]" wrote in
:

Use Courier New. It's a monofont which doesn't even have formatted
characters. It should be the font automatically used by Notepad.


I don't understand your instructions here.

Courier New has "smart quotes" in the font.

Secondly, Notepad does not use Courier New. I think it's using
Lucida Console, but I'm not sure on that. Whichever font it is, it
includes "curly quotes".

Even if the font doesn't include the curly quotes, changing the font
doesn't do anything to change the character encoding -- it will only
cause the offending characters to be replaced with a square block.

Choosing a font affects only display, not the actual encoding, which
has to be handled properly during the export and import process.

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
  #6  
Old May 19th, 2010, 07:27 AM posted to microsoft.public.access
Rick Brandt
external usenet poster
 
Posts: 4,354
Default Getting 'Smart Quotes' out of Access

Arvin Meyer [MVP] wrote:

"Excuse me, but my Notepad is using Courier New, and it doesn't have curly
quotes" I think I set that up to match the font I use in the IDE code
window.


Smart quotes are only "curly" in some fonts. In others they are just
slanted. Regardless of how a particular font displays them they are
different characters from ' and " and in many situations outside of Office
apps they will not render properly.


  #7  
Old May 19th, 2010, 08:26 PM posted to microsoft.public.access
David W. Fenton
external usenet poster
 
Posts: 3,373
Default Getting 'Smart Quotes' out of Access

"Arvin Meyer [MVP]" wrote in
:

"Excuse me, but my Notepad is using Courier New, and it doesn't
have curly quotes" I think I set that up to match the font I use
in the IDE code window.


May well be, but that's not the default.

I just Googled how to change the font, and it's quite easy -- just
go to the Format menu and choose Font, etc.

It never occurred to me that:

1. a text editor would allow you to change the font (other than just
changing the display font).

2. changing it in one instance of the text editor is a permanent
change.

I don't know what version of Courier New you're using that lacks
curly quotes. I notice that "Courier" lacks curly quotes, but
Courier NEW has them.

But as I said, switching the font doesn't cause the curly quotes to
become straight quotes *unless* the font you're using has mapped
ANSI 0147 and 0148 to use the same idiograph as 0034. On my WinXP
PC, the Courier font displays a black box, indicating no idiograph
has been assigned to the positions allocated for curly quotes.

( just checked on a relatively pristine Win7 installation, and
Notepad defaults to Lucida Console. I definitely have never changed
it on that machine, nor can I imagine that I once knew that I could
change it in the past and then forgot!)

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 03:45 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.