How do I convert a double-byte encoded file to single-byte ASCII?

Hello,
I am working with XML files (apparently coded in UTF-8) which encoded in double-byte characters.
The problem is the characters for end of line: 00 0D 00 0A
This double byte end of line is causing a problem with a legacy conversion tool (which deals with 0D 0A). The file itself contains no
accented/international characters, so in principle converting to single-byte should not cause any problems.
I have tried to convert this file with tools like native2ascii and the conversion tools that are part of Notepad++ but without
any luck - the "00 0D 00 0A" are still present in the output
Can anyone point me to a tool or some code that can convet this file into single-byte?
Thank you.

Amiens wrote:
native2ascii.exe -encoding UTF-16 -reverse INPUT.xml OUTPUT.xml
gives 00 00 0 0D 00 00 00 0A
so clearly that is not the required output.What you've got there is UTF-16 encoded text that's been converted to UTF-16. Get rid of the "-reverse" option and you should see the result you expect.

Similar Messages

  • How can i convert an object to stream of chars or bytes?

    how can i convert an object to stream of chars or bytes?

    One way is the serialization mechanism. There are examples and explanations of it in the Java tutorial: http://java.sun.com/docs/books/tutorial/essential/io/serialization.html

  • How can I convert a double to string

    Hello,
    how can I convert a double value to a string value?
    Werner

    an other way: ;)
    double yourDouble;
    int intTmp;
    yourDouble = yourDouble * 100;
    yourDouble = yourDouble + 0.5;
    intTmp = yourDouble.intValue();
    yourDouble = intTmp;
    yourDouble = yourDouble / 100;you can write it some shorter...
    double yourDouble;
    int intTmp;
    yourDouble = yourDouble * 100 + 0.5;
    yourDouble = yourDouble.intValue() / 100;*100 moves the comma about two steps to the left.
    + 0.5 enables rounding!
    if your value is x.5 or larger you get x+1.?
    if its smaller than x.5 you get x.?
    by parsing the double value to an int the ? is cut.
    /100 moves the comma two steps back
    you get a double value with 2 decimals which is rounded.
    just my coins :)
    happy progging,
    Thof

  • How do i convert a double array (with spaces and tabs) to a string?

    Hi
    In our files, we have a mixture of spaces and tabs as a delimeter. How do I convert a double array into a string?
    Thank you.

    Not sure about the last part of your question.
    The Search and Replace pattern can be better than the simple Search and Replace string when you have to do complex searchs, such as detecting multiple spaces.
    Have a look at the attachment.
    CC
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        
    Attachments:
    ReplaceSpaces.vi ‏27 KB

  • How can I convert my Open Source document files into Word document files? I cannot download Pages since my Macbook Air does not have the most recent software.

    How can I convert my Open Source document files into Word document files? I cannot download Pages since my Macbook Air does not have the most recent software. I downloaded open office to my mac to try and save money. It worked well for a while. Now I get this pop-up message that asks me to "Reopen" and when I select the option, nothing happens. I cannot save my documents anymore and I cannot convert them to word. Help!

    dwb wrote:
    Does OpenOffice output Word documents by default or do you have to select it manually?
    You have 17 options to save as in Open Office, one of which is .doc  files,  yes it needs to be saved manually.
    You may be able to default to DOC, but have not tried same.
    Since Open Office is 99% same as Word, I use it, or Word, either one.  Open Office is a bit less buggy than Word 11'

  • How can i convert a window media player file into a format playable on ipod

    hey guys can you tell me how can i convert an widdow media player file into a format that can be played on my ipod, i used videora ipod converter but it can't convert the window media player file

    the program you show change wma to mp3, but the mp3 file can't be understanded by the iPod, how can i change a wma file to a format understanded by the Ipod?

  • How can i convert a quick time movie file to a cd that will play in a car stereo?

    how can i convert a quick time movie file to a cd that will play in a car stereo?

    In quicktime, I would try File -> Export -> Audio. It will create an audio file. Then drop it onto your playlist into  iTunes. Burn the list from itunes with File -> Burn to disk    and then select Audio CD.
    If you have Quicktime  7 it should be easier and export to AIFF directly

  • How can i convert a double to float

    double gallons;
    double startOdometer;
    double endOdometer;
    double mpg;
    double miles;
    endOdometer = Double.parseDouble (inputs);
    miles = endOdometer - startOdometer;                                                                 
    mpg = (miles/gallons) ;
    gallons = miles/mpg;
    mpg = Float.parseFloat(double);

    You would use a cast.
    double d = 1.4;
    float f = (float) d;But why do you want to convert a double into a float and then store it back into a double?????

  • How Do I convert image in xml data file back into a JPG?

    I have a user submitted for with an image field and some text fields on it.
    User uploads an image, enters text, clicks submit by email.
    I get the xml data file by email.
    I create a spreadsheet from it.
    text field data is there, in the image field column theres the encoded in text image.
    how do I convert that back into an actual jpg??

    Simply to review proper proceedure and verify we are all on the same page.
    First, set Pan Mode to Stereo Left/Right.
    Then you need to change the XHA1's "Stereo" configuration to "Dual Mono". 
    Each will then automatically pan to the center. 
    Then turn one of the channels off.
    This will work in either the Browser or in a Timeline.

  • I have a quicktime movie on a hard drive, and I have the hard drive plugged into my macbook, and the quicktime movie is not opening, its just a black screen. How do I convert it to the right file so I can watch it ?

    I have quicktime movie files on a hard drive, and normally when I plug the hard drive into my computer, I can open the quicktime files and watch them. Now when I am doing it, the quicktime movies are opening up with a black screen. How do i convert it to be in the right format to be able to watch ?

    I plugged my old drive into an identical Vostro and saved my bookmarks per the instructions. Later, when I check the file, it was in html format. While waiting for the replacement laptop to arrive, I put my old (Vostro) hard drive into a case so I could access the files. I have been able to launch web pages from the file bt accessing them through My Documents so I know the file is good. The problem is, I apparently need to convert them into a JSON file in order to use them. There is a set of instructions on the Mozilla/Firefox website but that method does not work.

  • How do I convert a PDF to Word file.

    How do I convert a scanned PDF document into a word document?

    Thank you
    Mary D. Perry, Esq.
    840 South Rancho Dr., Suite 4-256
    Las Vegas, NV 89106
    Telephone: (702) 384-9911
    Pursuant to Federal Regulations imposed on Practitioners who render tax advice ("Circular 230"), we are required to advise you that any tax advice contained herein is not intended or written to be used for the purpose of avoiding tax penalties that may be imposed by the Internal Revenue Service. If this advice is or is intended to be used or referred to in promoting, marketing or recommending a partnership or other entity, investment plan or arrangement, the regulations under Circular 230 require that we advise you as follows: (1) This writing is not intended or written to be used, and it cannot be used, for the purpose of avoiding tax penalties that may be imposed on a taxpayer; (2) The advice was written to support the promotion or marketing of the transaction(s) or matter(s) addressed by the written advice, and (3) The taxpayer should seek advice based on the taxpayer's particular circumstances from an independent tax advisor.
    This e-mail, including any attachments, may contain confidential and/or proprietary information. If the reader of this e-mail is not the intended recipient or his or her authorized agent, the reader is hereby notified that any dissemination, distribution or copying of this e-mail is prohibited. If you have received this e-mail in error, please notify the sender by replying to this message and delete message immediately.

  • How do you convert a swf or mp4 file into flv using creative cloud programs?

    I am trying to embed a video as HTML5 with Flash fallback into my Dreamwaver site and only have the swf file of the video. 
    Please let me know if you have any ideas about how to convert a swf or mp4 file into flv, without loosing pixels and quality of the swf file.
    Thank you!

    If you have MP4 video, you can use Pickle Player which has built-in Flash fallback for Mozilla.  No conversions required .
    http://www.pickleplayer.com/
    Nancy O.

  • How do i convert a Logic 4.7 file into a Logic 7.2?

    I've recorded an album with my old G4 using Logic Pro 4.7 and a Korg 1212 audio interface a few years back.
    Now i've loaded it into my MacBook Pro using Logic Pro 7.2 and the MOTU Traveler. it opens the arrangement but obviously all plugins aren't working because i used the Korg 1212 interface before. Once i change to CoreAudio, all the plugins on that channel strip disappear. I realized that Logic uses AU now but how can i convert the 4.7 songs with the VST plugins into 7.2 songs?
    Would it make sense to open the 4.7 songs with Logic 5.5, then save again and re-open it with 7.2?
    all help is welcome
    17" MacBook Pro Mac OS X (10.4.9)

    Hi,
    I realized that Logic uses AU now but how can i convert the 4.7 songs with > the VST plugins into 7.2 songs?
    You would have to have EVERY VST plugin available also as an AU plugin.And it still probably would not work,because logic is SO different than what it was in version 4.The code for most of it has been optimized for g5 and Intel processors,which weren't around in version 4.That alone will change it too much to just open it up straight away.
    I would open the old version,if possible,on the old logic version,and then render each MIDI into audio,and get the settings for each plugin.Tons o' work,but if you really MUST do this,to me,it's the only way to ensure it plays back the same as before.
    Personally,I like to render each track after a final mix into it's own track,with FX included except for reverbs/delays,as an additional copy of the song.Afterwards,I can playback these copies,all at 0dB on their respective faders,and get a very close facsimile of the mix.I just have to add the reverb and delay effects,and I'm there.
    Cheers

  • How do i convert 196/24 bit aiff files to play on my ipod?

    how can I convert 196hz/24bit aifff iles to play on ipod classic?

    Hi there,
    You may find the article below helpful.
    iTunes: How to convert a song to a different file format
    http://support.apple.com/kb/HT1550
    -Griff W.

  • How do I convert a double to an int?

    I would like to use math.pow(), but math.pow() only take doubles as arguments and result and I need my result to be an int.
    Example:
    double a = 10;
    double b = 3;
    double c;
    c = math.pow(a,b);
    "Now, here I what to convert c to an int"

    Can't you say
    int d = Math.floor(c);
    ?

Maybe you are looking for