Skip to content

Charset Auto Selector Return Type #250

Answered by yeonns
DahyeonWoo asked this question in Q&A
Discussion options

You must be logged in to vote

@DahyeonWoo

  1. Is the return type Charset interface? Or should it be clear like ASCIICharset or UTF8Charset?

Because Charset is super class, I think it is enough to return Charset interface.

  1. Would it be good to make CharsetBuilder class like PacketBuilder? Other implementation methods are also good, so I would appreciate it if you could give me some advice.

Well, there can be many ways to implement, but I think one way is utilizing map<Charset, HexVector>. Then, we can sort by encoded result and also return Charset.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@designe
Comment options

Answer selected by DahyeonWoo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
3 participants