Saber special characters
I am using Saber Web Services (SabreCommandLLSRQ) to build a C # proof of concept for low fare refurbishing.
Now I am hitting some special saber characters that I don't know what they are in C #. I have some that work, but I'm sure there are more - does anyone have a saber 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();
}
+3
source to share
2 answers
If you want to insert Saber special characters into your XML, this is what I have documented for the SaberCenterandLLSRQ service of the Saber service:
<!--Use ç for Cross of Lorraine-->
<!--Use ¤ for Change-->
<!--Use § for End Item-->
The Crossroads of Lorraine is the most commonly used, but end element and change are also used.
0
source to share