user1774937: your question is very strange. You're clearly mixing some basic concepts. What exactly do you ultimately want to do with the escaped/encoded string? I.e. what exactly is the functional requirement for which you thought that this would possibly be the right solution? Only then, the right answer can be given.
%c3is not HTML-escaping, but URL-encoding.