Wdym by/what is character? How does character differ from personality?
I don't know know if this is the true definition but it's the way I see it.
I see personality as the innate way you view the world and your enduring behaviors, thoughts, emotional responses, etc. and these are fairly consistent over time. They change yes, but quite gradually. For example, people who are sarcastic and philosophical generally are for their life.
Character is how you present yourself, your moral code, and things that you
won't do. For example, someone who treats restaurant staff very kindly, who refuses to steal even if they wouldn't get caught. This is generally exposed through trials and actions rather than being able to be sensed via conversation. Sure, kindness might be seen as a personality trait, but a kind person can become cruel. Likewise, if you met me 5 years ago you would've thought that I had a very nasty personality despite it having not changed, rather, my behavior has.
They're both very related so the line between them is pretty blurred. In my head, the distinction is a lot more clear but I don't really know how to put it into words.