Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sabre special characters

Tags:

c#

sabre

I'm using Sabre web services (SabreCommandLLSRQ) to build a c# proof of concept for low fare re-booking.

I'm now hitting some special sabre characters that I don't know what they are in c#. I have a few that are working but I'm sure to encounter more - does anybody have a sabre character mapping for c#?

private string BuildPriceLine()
{
    const char CHLOR = (char)0xE7;   // Cross-of-Lorraine
    const char ENDITEM = (char)0xA7; // End Item key
    const char CHGKEY = (char)0xA5;  // Change Key

    var sabreCommand = new StringBuilder();

    // WPRQ‡AAA‡UN*C123456‡KP0‡XP«
    sabreCommand.Append("WPRQ");
    sabreCommand.Append(CHLOR);
    sabreCommand.Append("AAA");
    sabreCommand.Append(CHLOR);
    sabreCommand.Append("UN*C123456");
    sabreCommand.Append(CHLOR);
    sabreCommand.Append("KP0");
    sabreCommand.Append(CHLOR);
    sabreCommand.Append("XP");
    sabreCommand.Append(WhatSabreCharIsThis); // "«" ?

    return sabreCommand.ToString();
}
like image 485
fuchs_tx Avatar asked Aug 02 '15 20:08

fuchs_tx


1 Answers

When you want to insert special Sabre characters in your XML, this is what I've got documented for Sabre Web Services SabreCommandLLSRQ service:

<!--Use &#231; for Cross of Lorraine-->
<!--Use &#164; for Change-->
<!--Use &#167; for End Item-->

Cross of Lorraine is the most commonly used one, but End Item and Change are also used.

like image 64
Xansta Avatar answered Sep 20 '22 07:09

Xansta