AutoCAD 2013/2014/2015

Reply
Contributor
g_petkov
Posts: 21
Registered: ‎08-09-2007
Message 1 of 4 (376 Views)
Accepted Solution

dcl cyrillic characters bug

376 Views, 3 Replies
05-15-2012 08:23 AM

AutoCAD 2013 cannot display cyrillic characters in autolisp dialog boxes. These .dcl files were created a few years ago, but they displayed cyrillic characters correctly in all previous versions 2012 including. Now I see some strange symbols and the autolisp routine is useless!

Bug observed on 2 computers with the same result.

My OS is Windows 7 64-bit professional (bulgarian)

Office 2010 (64-bit)

Product Design Suite Professional 2013 (64-bit, of course)

Product Support
Albert_Rius
Posts: 95
Registered: ‎09-27-2011
Message 2 of 4 (351 Views)

Re: dcl cyrillic characters bug

05-18-2012 03:50 AM in reply to: g_petkov

Hi,

 

Please try to save the DCL file in UTF-8 format, this will fix the problem on 2013 releases. Notice that this change will make this dialog to fail if you open it on previous releases.

 

 

_____________________________________________________________

If my post answers your question, please click the "Accept as Solution" button. This helps everyone find answers more quickly!

 



Albert Rius
Frontline Technical Support
Autodesk, Inc.
*Expert Elite* | International Moderator
kpblc2000
Posts: 610
Registered: ‎10-10-2006
Message 3 of 4 (274 Views)

Re: dcl cyrillic characters bug

09-19-2012 02:06 PM in reply to: Albert_Rius

Sometimes this solution is not available. For example, I create dcl dialog dynamically, like this code:

(defun test (/ file handle)
  (setq file   (strcat (vl-string-right-trim "\\" (getenv "TEMP")) "\\dlg.dcl")
        handle (open file "w")
        ) ;_ end of setq
  (foreach item '("dlg:dialog{label=\"Проверка работы\";" ":text{label=\"Проверка 2\";}" "ok_cancel;" "}")
    (write-line item handle)
    ) ;_ end of foreach
  (close handle)
  (setq dcl_id (load_dialog file))
  (new_dialog "dlg" dcl_id)
  (setq dcl_res (start_dialog))
  (unload_dialog dcl_id)
  (princ)
  ) ;_ end of defun

 

Start (test) in AutoCAD 2012 Eng or Rus, and in AutoCAD 2013 Eng and Rus.

 

If I'll try to use solution "save DCL with UTF-8 format" - how could i say to write dcl file with format not ANSI1251?

Обращение ко мне - на "ты", меня один. Ник читать как "крыс".
Autodesk Discussion RU Autodesk Community AutoLisp.ru  ADN на русском  
Правила форума придуманы не просто так!
*Expert Elite* | International Moderator
kpblc2000
Posts: 610
Registered: ‎10-10-2006
Message 4 of 4 (272 Views)

Re: dcl cyrillic characters bug

09-19-2012 02:11 PM in reply to: kpblc2000

The same problem is at AutoCAD console application: cyrillic characters are not displayed in AutoCAD 2013 Eng (with or without SP 1.1).

Обращение ко мне - на "ты", меня один. Ник читать как "крыс".
Autodesk Discussion RU Autodesk Community AutoLisp.ru  ADN на русском  
Правила форума придуманы не просто так!

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community




Connect with AutoCAD

Twitter

Facebook

Blogs

Pinterest

Youtube