<p>Part of our app parses RTF documents and we've come across a special character that is not translating well.  When viewed in Word the character is an elipsis (...), and it's encoded in the RTF as ('85).</p>

<p>In our vb code we converted the hex (85) to int(133) and then did Chr(133) to return (...)</p>

<p>Here's the code in C# - problem is this doesn't work for values above 127.  Any ideas?</p>

<p>Calling code :</p>

<pre><code>// S is Hex number!!!
return Convert.ToChar(HexStringToInt(s)).ToString();
</code></pre>

<p>Helper method:</p>

<pre><code>private static int HexStringToInt(string hexString)
{
    int i;

    try
    {
        i = Int32.Parse(hexString, NumberStyles.HexNumber);
    }
    catch (Exception ex)
    {
        throw new ApplicationException("Error trying to convert hex value: " + hexString, ex);
    }

    return i;
}
</code></pre>

```
```
private static int HexStringToInt(string hexString)
{
    try
    {
        return Convert.ToChar(hexString);
    }
    catch (FormatException ex)
    {
        throw new ArgumentException("Is not a valid hex character.", "hexString", ex);
    }
    // Convert.ToChar() will throw an ArgumentException also
    // if hexString is bad
}
```
```