Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Feb 1st, 2005, 12:34 PM   #1
welles
Newbie
 
Join Date: Feb 2005
Posts: 2
Rep Power: 0 welles is on a distinguished road
Unicode to Ascii

I am actually working on an installation project at the moment and I am try to read an automatic generated unicode log file by using InstallScript. But unfortunately, the GetLine function in InstallScript only read Ascii file. I tried to manually convert the log file to Ascii by usning Notepad and it works. But I would like to automate the convertion. Can anyone help me?

Thanks,
Welles
welles is offline   Reply With Quote
Old Feb 1st, 2005, 12:46 PM   #2
big_k105
PFO Founder

 
big_k105's Avatar
 
Join Date: Mar 2004
Location: Fargo, ND
Posts: 1,646
Rep Power: 10 big_k105 is on a distinguished road
Send a message via AIM to big_k105 Send a message via MSN to big_k105 Send a message via Yahoo to big_k105
http://www.codersource.net/win32_unicode_ascii.html

This is all i can find maybe it will help maybe someone else will have a better idea
__________________
BIG K aka Kyle
Programming Forums
Kyle K Online

Please do not PM or email me programming questions. Post them in the forums instead.
big_k105 is offline   Reply With Quote
Old Feb 16th, 2005, 10:26 AM   #3
Cipher
Hobbyist Programmer
 
Cipher's Avatar
 
Join Date: Feb 2005
Location: /home/cipher
Posts: 123
Rep Power: 4 Cipher is on a distinguished road
Send a message via AIM to Cipher Send a message via MSN to Cipher
Give me the Unicode text and I will convet it using VB then send it back to you. If you want....
__________________
And there was much rejoicing... Yay....
Cipher is offline   Reply With Quote
Old Mar 28th, 2005, 7:14 PM   #4
welles
Newbie
 
Join Date: Feb 2005
Posts: 2
Rep Power: 0 welles is on a distinguished road
Automatic process

Hi Cipher,

Thanks for offering, but I need a mean to automatically convert a unicode file to a ascii file. I was able to convert a unicode file to ascii file manually using notepad, but that's no what I need since I have to do this everytime the user in the application.

Thanks,
Welles
welles is offline   Reply With Quote
Old Mar 29th, 2005, 12:31 AM   #5
ZenMasterJG
Hobbyist Programmer
 
ZenMasterJG's Avatar
 
Join Date: Nov 2004
Location: Boston, MA
Posts: 148
Rep Power: 4 ZenMasterJG is on a distinguished road
Send a message via AIM to ZenMasterJG
What were you planning on writing this in?
If my understanding of unicode is correct (which it might not be) the ASCII and Unicode values for characters are the same. That is, ASCII has characters 0-127, so Unicode maintained those values for the character set to maximize compatibility. So, usually you can just pretend that a Unicode string is ASCII and vise versa so long as your only using characters in the basic ASCII set.
ZenMasterJG is offline   Reply With Quote
Old May 6th, 2005, 10:36 AM   #6
karthik
Newbie
 
Join Date: May 2005
Posts: 1
Rep Power: 0 karthik is on a distinguished road
Hi

i am looking for automatic conversion of unicode text file to ansi text file via perl
programming....If u happen to know please let me know.

Thanks
Karthik
karthik is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

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




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 11:26 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC