Menu

Problems sending text character

Help
2012-03-27
2013-01-01
  • Steve Jones

    Steve Jones - 2012-03-27

    I'm having problems sending the following individual text characters:-

    £       €      "

    I can send the $ character ok.  I am using the following syntax to send my characters

    ("chars:$")

    Is there a work around to send these characters?

    Thanks

     
  • Charlie Kindel

    Charlie Kindel - 2012-03-27

    I have to implement a fix for this. Watch for it…

     
  • Steve Jones

    Steve Jones - 2012-03-27

    Will do….

    Many thanks

     
  • Charlie Kindel

    Charlie Kindel - 2012-03-27

    Version 1.5.0 has been uploaded. It addresses your issue by extending the chars: command to support escaped characters.

    This allows the sending of Unicode characters such as € (e.g. 'chars:\u20AC' will cause the € character to be input on the server machine). '\u00A3' is the pound sign, etc…

     
  • Steve Jones

    Steve Jones - 2012-03-27

    Hi Charle,

    Thank you for the super fast response and the new version.

    Unless I am missing something I can't get it to display the Unicode characters. I have installed version 1.5.0.15174 and I am sending the following syntax:-

    For the £ Pound sign - TCPCommand ("chars:\u00A3");                 (Output displays -  ? in a box in WordPad)

    For the € Euro sign - TCPCommand ("chars:\u20AC");                    (Output displays -  ? in a box in WordPad)

    For the " Quotation mark sign - TCPCommand ("chars:\u+0022");     (Output displays -  ju+0022 in WordPad)

    Any ideas?

     
  • Charlie Kindel

    Charlie Kindel - 2012-03-27

    Oopsy. I didn't actually test my fix all the way! I'll have to look deeper. Sad-panda!

     
  • Charlie Kindel

    Charlie Kindel - 2012-03-27

    Hmmm…  Are you sure 1.5.0 is running. I just tested with this .cmd file:

    echo notepad| nc 192.168.0.5 5150 -w 1
    echo chars:That will be |nc 192.168.0.5 5150 -w 1
    echo chars:\u20AC22.50| nc 192.168.0.5 5150 -w 1
    echo chars:!| nc 192.168.0.5 5150 -w 1

    and the following was typed into notepad (I tried wordpad too and it worked):

       That will be €22.50!

     
  • Steve Jones

    Steve Jones - 2012-03-27

    It defiantly says its 1.50.15174 in the about dialog box.

    I will uninstall it and manually delete any remaining files then do a reinstall to see if that fixes it.

    I think I had an issue like this before were some files were left behind and cause a similar issue now I think of it.

    I will let you know the outcome.  I am also happy to make a contribution when I have this finished.

    Thanks

     
  • Steve Jones

    Steve Jones - 2012-03-28

    I have uninstalled version 1.5.0.15174 and manually deleted the Kindel Systems folder from Program Files (Windows 7).  I reinstalled but still I am getting the same errors.

    I tried this on two different Windows 7 machines.

    Strange!

     
  • Charlie Kindel

    Charlie Kindel - 2012-03-28

    I wonder if it is the program you are using to send the commands.  Can you please try my test script (download NetCat)?

    It's possible your program is munging the encoded string before sending it over the wire?

     
  • Steve Jones

    Steve Jones - 2012-03-28

    Ok I have nc.exe open on my networked WIN7 PC when I send the commands in the same manor it displays the same as already reported which is what was expected.

    When you say try your test script. Am I correct by putting your syntax (with my remote PC IP address) in notepad and changing the name and extension to test.cmd then double clicking to run it?

    If so it opens and closes but nothing is displayed on the networked PC.

     
  • Charlie Kindel

    Charlie Kindel - 2012-03-28

    I run the test script locally on the machine running mcecontroller.  The IP address is of the local machine.

    But it should also work the way you are trying.

    What happens if you just type "echo chars:\u20AC| nc 192.168.0.5 5150 -w 1" at the command prompt?

     
  • Steve Jones

    Steve Jones - 2012-03-28

    Nothing…

    Microsoft Windows
    Copyright (C) 2006 Microsoft Corporation.  All rights reserved.

    C:\>"echo chars:\u20AC| nc 192.168.0.45 5150 -w1"
    The filename, directory name, or volume label syntax is incorrect.

     
  • Charlie Kindel

    Charlie Kindel - 2012-03-28

    remove the quotes.

     
  • Steve Jones

    Steve Jones - 2012-03-28

    Sending this from the command prompt (windows Vista) accross the network to (Windows 7) outputs ? in nc.exe screen.

    C:\>echo chars:\u20AC| nc 192.168.0.45 5150 -w 1

     
  • Charlie Kindel

    Charlie Kindel - 2012-03-28

    "in nc.exe" screen?

    Do you mean in the MCE Controller log?

    Can you post a screenshot?

     
  • Steve Jones

    Steve Jones - 2012-03-28

    In notepad I get the Euro symbol disply correctly though!

     
  • Charlie Kindel

    Charlie Kindel - 2012-03-28

    This is what it looks like for me:

     
  • Steve Jones

    Steve Jones - 2012-03-28

    Yes sorry, I'm getting that now….. its displaying ok in MCE Controller and Notepad if I send from the command prompt.

    Does that mean there is not fix?

     
  • Charlie Kindel

    Charlie Kindel - 2012-03-28

    I'm not sure.  Tell me more about the program you are using to send commands.

    Whatever it is, it seems to be corrupting things. There may be a way of fooling it, but I need to know more.

     
  • Steve Jones

    Steve Jones - 2012-03-28

    I have it partially working by adding another **

    For the £ Pound sign - TCPCommand ("chars:\\u00A3");

    For the € Euro sign - TCPCommand ("chars:\\u20AC");

    For the " Quotation mark sign - TCPCommand ("chars:\\u+0022"); (this one is not working!)

    I’m using an emulator for a Pronto remote control. It uses Prontoscript which is similar to JavaScript

     
  • Charlie Kindel

    Charlie Kindel - 2012-03-28

    Sounds like TCPCommand is eating "\". Glad to hear the "\\" work around seems to work.

    I take it chars:\\u0022 didn't work?   The code I'm using doesn't know how to parse the \u+ format.

     
  • Steve Jones

    Steve Jones - 2012-03-29

    I had a fresh look at it again this morning and tried chars:\\u0022 and it works!

    How to I send the contribution?

    Thanks for your help. It’s much appreciated.

     
  • Charlie Kindel

    Charlie Kindel - 2012-03-30

    There's a donate button on the main page here on Sourceforge.Or you could write a recommendation. I just do this for fun.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.