Results 1 to 4 of 4

Thread: how to read non-unicode text using lisp?

  1. #1
    Woo! Hoo! my 1st post
    Join Date
    2009-02
    Posts
    1
    Login to Give a bone
    0

    Default how to read non-unicode text using lisp?

    I have a txt file which contains non-unicode texts as per below

    アルミニウムプロファイル
    قوس
    緊固件
    Стальной профильный лист

    I have tried to use open and read-line function but it came out like this

    アルミニウムプロファイル
    قوس
    緊固件
    Стальной профильный лист

    Is there a way that I can maintain the original form of those texts so that I can export them into my drawing?

  2. #2
    Past Vice President / AUGI Volunteer peter's Avatar
    Join Date
    2000-09
    Location
    Honolulu HI
    Posts
    1,109
    Login to Give a bone
    0

    Default Re: how to read non-unicode text using lisp?

    Hey welcome to the forum.

    I would suspect that you can do this from .net and call the function from LISP.

    I have never done it though.



    Peter
    AutomateCAD

  3. #3
    I could stop if I wanted to
    Join Date
    2009-03
    Location
    London, England
    Posts
    304
    Login to Give a bone
    0

    Default Re: how to read non-unicode text using lisp?

    How about using the FileSystemObject to read the file as a TextStream?

    http://msdn.microsoft.com/en-us/libr...=VS.85%29.aspx

  4. #4
    AUGI Addict fixo's Avatar
    Join Date
    2005-05
    Location
    Pietari, Venäjä
    Posts
    1,269
    Login to Give a bone
    0

    Default Re: how to read non-unicode text using lisp?

    [quote=Lee Mac;1077240]How about using the FileSystemObject to read the file as a TextStream?

    http://msdn.microsoft.com/en-us/libr...spx[/quote]

    What about...

    so that I can export them into my drawing?
    ~'J'~

Similar Threads

  1. type catalog unicode text file
    By Ning Zhou in forum Revit Architecture - Families
    Replies: 0
    Last Post: 2010-10-07, 03:37 PM
  2. LISP Editor Vlide to support unicode
    By dmarcotte4 in forum API Wish List
    Replies: 1
    Last Post: 2010-09-28, 12:59 PM
  3. Read from LISP in QuickCalc
    By b.ssss.12 in forum AutoLISP
    Replies: 14
    Last Post: 2010-07-05, 07:36 AM
  4. Text string errors - Unicode & Controlcode
    By jsanchez.122500 in forum ACA General
    Replies: 5
    Last Post: 2007-03-28, 10:53 PM
  5. Scripts/LISP and read only dwg's
    By mnelson.92099 in forum AutoLISP
    Replies: 3
    Last Post: 2006-08-23, 09:23 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •