• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

You are not logged in or you do not have permission to access this page. This could be due to one of several reasons:

  • You are not logged in. If you are already registered, fill in the form below to log in, or follow the "Sign Up" link to register a new account.
  • You may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
  • If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.

Previously on "UTF-8 vs ANSI Character Encoding"

Collapse

  • Joe Black
    replied
    Originally posted by chicane View Post
    Use a hex editor. I find dos debug does the job.
    Unless something's actually stored as an Ascii file and you just started overwriting the first few bytes.

    Leave a comment:


  • DimPrawn
    replied
    Shut it SKA face.

    Leave a comment:


  • AtW
    replied
    Originally posted by Moose423956 View Post
    Thanks DP. I saw this, and thought of you:
    Buy a prawn sandwich instead - it is more satisfying

    Leave a comment:


  • Moose423956
    replied
    Originally posted by DimPrawn View Post
    Thanks DP. I saw this, and thought of you:

    Visual Basic (Usage)
    Dim path As String
    Dim append As Boolean
    Dim encoding As Encoding

    Dim instance As New StreamWriter(path, append, _
    encoding)

    Leave a comment:


  • DimPrawn
    replied
    Originally posted by Moose423956 View Post
    You sod. Feed me a little bit of info, then reel me in like a nice juicy catch. Couldn't you give me just one little freebie? Please?
    http://msdn2.microsoft.com/en-us/library/f5f5x7kt.aspx

    That's yer lot.

    Leave a comment:


  • chicane
    replied
    Originally posted by Moose423956 View Post
    How does one go about setting the BOM?
    Use a hex editor. I find dos debug does the job.

    Leave a comment:


  • Moose423956
    replied
    Originally posted by oracleslave View Post
    It's called pre-sales innit?
    I hardly think he's going to get a 3-month contract out of it.

    Leave a comment:


  • oracleslave
    replied
    Originally posted by Moose423956 View Post
    You sod. Feed me a little bit of info, then reel me in like a nice juicy catch. Couldn't you give me just one little freebie? Please?
    It's called pre-sales innit?

    Leave a comment:


  • Moose423956
    replied
    Originally posted by DimPrawn View Post
    That's your free 15 minutes used up Moosey. If you would like to use my services, the hourly rate is £60 p.h. which is cheaper than a London Plumber.
    You sod. Feed me a little bit of info, then reel me in like a nice juicy catch. Couldn't you give me just one little freebie? Please?

    Leave a comment:


  • DimPrawn
    replied
    That's your free 15 minutes used up Moosey. If you would like to use my services, the hourly rate is £60 p.h. which is cheaper than a London Plumber.

    Leave a comment:


  • Moose423956
    replied
    Originally posted by DimPrawn View Post
    If the file has a byte-order-mark, then yes, you can detect the encoding.

    http://en.wikipedia.org/wiki/Byte_Order_Mark

    As usual, .NET has the answer.

    http://msdn2.microsoft.com/en-us/net...aspx#Question2
    How does one go about setting the BOM?

    Leave a comment:


  • DimPrawn
    replied
    If the file has a byte-order-mark, then yes, you can detect the encoding.

    http://en.wikipedia.org/wiki/Byte_Order_Mark

    As usual, .NET has the answer.

    http://msdn2.microsoft.com/en-us/net...aspx#Question2

    Leave a comment:


  • Moose423956
    started a topic UTF-8 vs ANSI Character Encoding

    UTF-8 vs ANSI Character Encoding

    G'day techies. I have a question concerning the default encoding of text type files on Windows. Is there a way to specify that all text files created under Windows via a script always have a UTF-8 encoding, or to automatically detect the data type in the file and select the encoding from that.

    So if a file contains UTF-8 type characters, then the file is defined with a UTF-8 encoding, otherwise it is defined as an ANSI file.

    Sorry if that's a bit woolly. Would gladly try to elucidate if required.
Working...
X