Copy glyphs as text, not as names

How do I copy all glyphs as text?
For small caps for instance, when I copy paste, it appears as /a.sc instead of actual small capital a.
How can I copy all the glyphs and past them as glyphs?

PS: I am trying to create a character map in illustrator.

There is no small cap text. Because you cannot encode small caps. It is an OpenType feature.
In AI, duplicate the lowercase letters and apply smallcaps to them.