Text export

Text export

vladop
Collaborator Collaborator
149 Views
4 Replies
Message 1 of 5

Text export

vladop
Collaborator
Collaborator

For some time now I have had two problems with exporting text from AutoCAD that I can't solve:

1. When I copy from Attribute Editor

vladop_0-1757460171440.png

in Notepad I get text with formatting code 

 

vladop_1-1757460189620.png

 

2. When I export text (e.g. with ATTOUT) that is displayed in AUTOCAD correctly, 

vladop_2-1757460266226.png

in NOTEPAD for Cyrillic letters I get � and for non-ascii Latin letters \U+ code.

 

vladop_3-1757460617486.png

 

ATTIN import works without problems with all letters.

"Beta: Use Unicode UTF-8 for worldwide language support" is enabled.

vladop_4-1757460696082.png

Any idea?

0 Likes
150 Views
4 Replies
Replies (4)
Message 2 of 5

imadHabash
Mentor
Mentor

Hi,

  1.  Try to Paste into Word or excel first (Use “Paste Special → Unformatted Text”, then copy again to note pad to get rid from those formatting codes.
  2. Open the file in Notepad++ or another editor that supports encoding selection

    • Open the exported .txt file in Notepad++.

    • Go to Encoding → Character sets → Cyrillic → (choose your Windows code page, e.g. Windows-1251).

    • Now all Cyrillic and extended Latin letters will display properly.

Imad Habash

EESignature

0 Likes
Message 3 of 5

vladop
Collaborator
Collaborator

Hi Imad, thanks for the quick reply.

“Paste Special → Unformatted Text” doesn't help.

Changing to Windows-1251 in Notepad++ only fixed Cyrillic characters.

 

Even the Default encoding for "Save As" in Notepad is UTF-8, not ANSI.

vladop_1-1757482168752.png

 

Copying and pasting in Attribute Editor also adds formatting.

vladop_2-1757482515514.png

 

A month or two ago I experimented with exporting attributes to SQLite using ObjectARX.

I had the same problems with non-ascii characters.

I probably messed something up then.

 

If it was a Windows or AutoCAD update someone else would have had the same problem.

0 Likes
Message 4 of 5

vladop
Collaborator
Collaborator

In the meantime I have installed a newer version of AutoCAD and it behaves the same.

This suggests that the problem is in Windows.

0 Likes
Message 5 of 5

vladop
Collaborator
Collaborator

I also had problems in MS Outlook.

I messed up something in Windows.

0 Likes