Why don't you open the character map program in your GUI, find the pipe | character, and hence it's ASCII code.
Also, I'm in the UK, use a UK layout on a Toshiba laptop and to be honest, once I'd made sure my keyboard was set to my region I simply went through all key combinations (10 minutes max).
I found that my pipe symbol on my keyboard has a break in it, it looks like a colon : with lines instead of dots...
It shares the key with my \, but instead of being next to my Z, mine is between ALT GR and my SPACEBAR.
Hope that helps.
If you got @ when you did SHIFT + 2 you are using a US layout - try SHIFT # or SHIFT ~, it's one of them I think.