How does Subtle Spell works on spells like Fri…

How does Subtle Spell works on spells like Friends and Charm Person?

@JeremyECrawfordHow does Subtle Spell works on spells like Friends and Charm Person (where it is explicitly said that the target knows that he was charmed)?