Re: Changing garbled text ("???? ??????") to readable text ("?? ???")

Tech-Archive recommends: Speed Up your PC by fixing your registry



Your code is currently converting from one *string* to another. You
should be converting from your original file's *binary* data into a
string using an encoding. It sounds like you still haven't got the
right encoding.

I understand I need the binary data now, but then my question is, how
do I get the binary data of a filename? I have been using FileInfo to
access information about the files, is there another class I should be
using to retrieve the binary data. Ha I'm sure it's a simple solution
but I can't seem to wrap my head around it .And for the most part
I'll be dealing with ID3 tags and the data returned from the ID3 tag
methods are all strings.

Thanks for the link, I've been to that site a couple times and skimmed
through it/bookmarked it and tried to make as much sense of it as
possible but overall it was very enlightening.

.



Relevant Pages

  • Re: Changing garbled text ("???? ??????") to readable text ("?? ???")
    ... string using an encoding. ... the text from the file system, it's really up to the operating system ... I'll be dealing with ID3 tags and the data returned from the ID3 tag ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Pre-information on Unicode in Delphi 2008
    ... Well IMO this is one case where Delphi isn't doing strong typing, there should be a warning there and a requirement for an explicit cast. ... Converting from Ansi to Wide while assuming the Ansi is using the system_locale is just an assumption, and in the Delphi IDE itself, that can results in string corruption when editing DFMs, and before you ask, yes there are QCs on the subject:) ... AnsiString have no particular encoding at all, assuming *any* encoding for automagic conversion is going to result in hard-to-track cases of data ...
    (borland.public.delphi.non-technical)
  • Re: Convert Encoding from Shift-JIS to UTF-8
    ... No. You're converting the string into UTF-8, ... > converting one encoding to another using .Net. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: TripleDES output size
    ... If you are using UTF-8 for converting string to binary (generally a good ... encoding, then you should always get two bytes per character. ... you can figure out how many bytes of cipher data you'll get by ...
    (microsoft.public.dotnet.security)
  • Re: TripleDES encryption problem
    ... ASCII is only a 7-bit encoding, and your key uses the full 8-bit space ... >> Somehow converting the output of DesEncrypt to a string and then ...
    (microsoft.public.dotnet.security)