Printing unicode characters with key id

Hi, I want to print out unicode characters. But I want to do this using the key ids.
Example:
1
2
3
4
int main()
{
std::cout << ('124'); //I would like this to output '|'
}
int main()
{
char toRet = 124;
std::cout << toRet; //I would like this to output '|'
}
Thanks!
Topic archived. No new replies allowed.