Page 1 of 2 12 LastLast
Results 1 to 15 of 22
  1. #1
    Platinum Lounger
    Join Date
    Jan 2001
    Location
    Quedgeley, Gloucester, England
    Posts
    5,333
    Thanks
    0
    Thanked 1 Time in 1 Post

    Viewing a file with UNICODE text strings

    I have some files which are NOT Unicode files, according to the strict definition thereof, but which contain large numbers of Unicode text strings. This text is very difficult to read in the usual text viewers, like NOTEPAD, LIST, V, etc, because of the blank character (really null, but it looks blank!) which follows every ASCII text character, and the text is spread out twice as far as it need be, so recognising words, etc, is v. hard.

    Is anyone aware of a file viewer which would display the file, but with the null/blank characters omitted from the display, so that
    W o o d y ' s
    <font face="Script MT Bold"><font color=blue><big><big>John</big></big></font color=blue></font face=script>

    Ita, esto, quidcumque...

  2. #2
    Plutonium Lounger Leif's Avatar
    Join Date
    Dec 2000
    Location
    U.K.
    Posts
    14,010
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Viewing a file with UNICODE text strings

    Probably a silly idea, but it is Friday.

    They won't open in Word, will they?

  3. #3
    Platinum Lounger
    Join Date
    Jan 2001
    Location
    Quedgeley, Gloucester, England
    Posts
    5,333
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Viewing a file with UNICODE text strings

    Not a silly idea at all! They will open, but instead of the nice (?) blank between characters you get the "nasty open square box", which improves matters negatively...! <img src=/S/bummer.gif border=0 alt=bummer width=15 height=15>
    <font face="Script MT Bold"><font color=blue><big><big>John</big></big></font color=blue></font face=script>

    Ita, esto, quidcumque...

  4. #4
    Plutonium Lounger Leif's Avatar
    Join Date
    Dec 2000
    Location
    U.K.
    Posts
    14,010
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Viewing a file with UNICODE text strings

    So it would be equally silly to copy and past the "nasty open square box" into the Find and Replace (with nothing) window?

  5. #5
    Platinum Lounger
    Join Date
    Jan 2001
    Location
    Quedgeley, Gloucester, England
    Posts
    5,333
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Viewing a file with UNICODE text strings

    Nice try, but no cigar. It replaced a (very) few square boxes, but made no difference to the Unicode text strings. There would need to be a better way of spcifying the 0x00 character in Search-and-Replace.

    SLIGHTLY LATER...

    I think I must be having Brane Fade, for I've just tried it (again, I thought!) in Vernon Buerg's LIST -- and it drops the binary zero characters, and thus gives me exactly what I was after.

    Time to go home for a lie-down, I think! <img src=/S/blush.gif border=0 alt=blush width=15 height=15>

    Thanks for the ideas!
    <font face="Script MT Bold"><font color=blue><big><big>John</big></big></font color=blue></font face=script>

    Ita, esto, quidcumque...

  6. #6
    Platinum Lounger
    Join Date
    Jan 2001
    Location
    Quedgeley, Gloucester, England
    Posts
    5,333
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Viewing a file with UNICODE text strings

    Having had the weekend off and a day in London, I return and find some more files of the type I'm trying to view -- and this time even LIST displays the Unicode text strings with a blank/null between each character.

    So now I am back at square one, <font color=blue>still</font color=blue> needing a program that will close up the Unicode text strings when viewed...
    <font face="Script MT Bold"><font color=blue><big><big>John</big></big></font color=blue></font face=script>

    Ita, esto, quidcumque...

  7. #7
    5 Star Lounger
    Join Date
    Dec 2002
    Location
    Perth, Western Australia, Australia
    Posts
    730
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Viewing a file with UNICODE text strings

    Maybe you could attach an extract from one or two of the worst offenders? It might be easier to crack with something to play with directly. <img src=/S/smile.gif border=0 alt=smile width=15 height=15>
    <font face="Comic Sans MS" color="blue">TimOz</font>
    <img src=/S/flags/Finland.gif border=0 alt=Finland width=30 height=18> <img src=/S/flags/Australia.gif border=0 alt=Australia width=30 height=18>

  8. #8
    Platinum Lounger
    Join Date
    Jan 2001
    Location
    Quedgeley, Gloucester, England
    Posts
    5,333
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Viewing a file with UNICODE text strings

    I've attached an example file of just over 4 K, slightly doctored to remove identifying information...
    Attached Files Attached Files
    <font face="Script MT Bold"><font color=blue><big><big>John</big></big></font color=blue></font face=script>

    Ita, esto, quidcumque...

  9. #9
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Viewing a file with UNICODE text strings

    Apparently, Internet Explorer does a good job of viewing Unicode text: the attached screenshot shows what your attachment looks like when I open it in the browser.
    Attached Images Attached Images
    • File Type: gif x.gif (7.0 KB, 0 views)

  10. #10
    Plutonium Lounger Leif's Avatar
    Join Date
    Dec 2000
    Location
    U.K.
    Posts
    14,010
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Viewing a file with UNICODE text strings

    I found opening in Notepad, Selecting All, Copying, then pasting into Word gave something relatively legible.

    (Interestingly, whilst in Word, I tried a search and replace on one arbitary character. 2,000+ characters were removed with no discernible change in appearance!)

  11. #11
    5 Star Lounger
    Join Date
    Dec 2002
    Location
    Perth, Western Australia, Australia
    Posts
    730
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Viewing a file with UNICODE text strings

    Is the attached what you were after? I opened your file in word, copied one of the "blanks" following an ASCII character, and did a search & replace all (with nothing). (Couldn't get rid of the remaining boxes though.)
    Attached Files Attached Files
    <font face="Comic Sans MS" color="blue">TimOz</font>
    <img src=/S/flags/Finland.gif border=0 alt=Finland width=30 height=18> <img src=/S/flags/Australia.gif border=0 alt=Australia width=30 height=18>

  12. #12
    Plutonium Lounger Leif's Avatar
    Join Date
    Dec 2000
    Location
    U.K.
    Posts
    14,010
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Viewing a file with UNICODE text strings

    How about this?
    Attached Files Attached Files

  13. #13
    Platinum Lounger
    Join Date
    Jan 2001
    Location
    Quedgeley, Gloucester, England
    Posts
    5,333
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Viewing a file with UNICODE text strings

    Tim, that's not bad at all! Why didn't it work when either Leif or I tried it, then? [very puzzled indeed] (and no corresponding frownie!)

    I suppose the answer is really to get one of our programming chaps to read the file and strip out all characters less than blank, 0x20, and then view the resulting file in any available file viewer. But it would be <big>so</big> much easier to do it directly...
    <font face="Script MT Bold"><font color=blue><big><big>John</big></big></font color=blue></font face=script>

    Ita, esto, quidcumque...

  14. #14
    Platinum Lounger
    Join Date
    Jan 2001
    Location
    Quedgeley, Gloucester, England
    Posts
    5,333
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Viewing a file with UNICODE text strings

    OK, Leif - that's v. good. How done?
    <font face="Script MT Bold"><font color=blue><big><big>John</big></big></font color=blue></font face=script>

    Ita, esto, quidcumque...

  15. #15
    Platinum Lounger
    Join Date
    Jan 2001
    Location
    Quedgeley, Gloucester, England
    Posts
    5,333
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Viewing a file with UNICODE text strings

    The reply from Hans looks good to me - but when I try it, the file opens in NOTEPAD...

    Could you let me have the sequence of actions which would give the result you obtained, please?
    (I'm not used to these <img src=/S/new.gif border=0 alt=new width=35 height=15>-fangled GUI mechanisms...!) <img src=/S/bwaaah.gif border=0 alt=bwaaah width=123 height=15>

    Even when I change the extension, and try "Open with..." and choose "Internet Explorer", it just pauses for a short time, and nothing happens.
    <font face="Script MT Bold"><font color=blue><big><big>John</big></big></font color=blue></font face=script>

    Ita, esto, quidcumque...

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •