How do I encode numbers using OEM 437?

Posted on 2009-02-16
Last Modified: 2013-12-17
I am writing a file using the encoding code below...

It works fine when all of the data is a straight text string, but I am running into problems when numbers are involved.  For instance, the number 45 is treated as 4 and 5(the resulting output data is 3435), not fifty (should spit out the character "-" which is also 2D).  Any ideas as to what I am missing?  Thanks.
Question by:drunk_irishman
    1 Comment
    LVL 1

    Accepted Solution

    Figured it out, so for anyone else.....


    That was the solution, I needed to cast the value as a char.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Flash ( has evolved over the years to where it has become a masterful tool for displaying content screen.  It has excellent layout placement, UI precision as well as rendering capabilities. This, along with t…
    For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK ( for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now