input buffer for portal. need to handle Chinese.