topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday March 28, 2024, 11:46 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: [idea] Text to Unicode Conversion  (Read 8683 times)

kiran45

  • Participant
  • Joined in 2008
  • *
  • Posts: 5
    • View Profile
    • Donate to Member
[idea] Text to Unicode Conversion
« on: March 21, 2008, 01:57 AM »
Hi,
I am writing a script that requires me to convert normal urls into unicode form. I am trying to do something like this:
inputvar=http://www.example.com
Transform, outputvar, unicode, %inputvar%
msgbox, %outputvar%

However, I am not able to convert the text. please help
thanks

P.S. We have websites like http://tokira.net/unicode or http://fantomaster.c...der/fascodersv-e.cgi to do this. However, I need a desktop script/software.

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • View Profile
    • Donate to Member
Re: [idea] Text to Unicode Conversion
« Reply #1 on: March 21, 2008, 03:33 AM »
is this what you're looking for? StringConverter - a win32 console and COM component free software.

Features :
• Convert a FILE or a string from/to ANSI, OEM, BASE64, UNICODE.
• Usable either from command-line or from as a COM Component inside a script.
• Allow Raw encoding of Unicode strings (like described in Q263991 to change Password with LDIF or LDAP in Active Directory).

http://www.gbordier..../stringconverter.htm

kiran45

  • Participant
  • Joined in 2008
  • *
  • Posts: 5
    • View Profile
    • Donate to Member
Re: [idea] Text to Unicode Conversion
« Reply #2 on: March 21, 2008, 04:35 AM »
Hi,
Sorry. I am afraid this will not do the job. I was looking for something like this:
When I give this string
http://www.example.com
I should get output like this
http://www.example.com

I tried to get this output with stringconverter, but failed. Please try yourself and let me know if you get. It will be OK even if I can get the ouput on command line or inside a new file. An AHK script would be even better, because I can integrate it into my existing ahk script.

I apologize if I am not clear in my first post. Thanks again for trying.

Curt

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 7,566
    • View Profile
    • Donate to Member
Re: [idea] Text to Unicode Conversion
« Reply #3 on: March 21, 2008, 08:36 PM »
So, DonationCoder.com becomes &#119&#119&#119&#46&#100&#111&#110&#97&#116&#105&
#111&#110&#99&#111&#100&#101&#114&#46&#99&#111&#109 - is that it?

http://www.submitad....secure_html_lock.htm
$50 - has not been updated for several years sorry, "about" says copyright 2008
« Last Edit: March 21, 2008, 08:41 PM by Curt »

kiran45

  • Participant
  • Joined in 2008
  • *
  • Posts: 5
    • View Profile
    • Donate to Member
Re: [idea] Text to Unicode Conversion
« Reply #4 on: March 21, 2008, 09:52 PM »
Hi Curt,
thanks for the link. That's a nice application.

skrommel

  • Fastest code in the west
  • Developer
  • Joined in 2005
  • ***
  • Posts: 933
    • View Profile
    • 1 Hour Software by skrommel
    • Donate to Member
Re: [idea] Text to Unicode Conversion
« Reply #5 on: March 23, 2008, 04:05 AM »
 :) Here's an AutoHotkey version!

Skrommel

input=http://www.example.com
output=
Loop,Parse,input,
  output:=output "&" Asc(A_LoopField) ";"
MsgBox,%output%