T
T
theaidem2014-11-14 19:23:59
go
theaidem, 2014-11-14 19:23:59

Cropping text in Golang?

This is how I cut the text in the play.golang
script sometimes comes across at the end of �, as in the example.
Something I'm stupid, how is it more correct so that there is no this "kosyachny" symbol?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
neolink, 2014-11-14
@theaidem

Yes, you have cropping not by characters, but by byte, here is an example of working through rune
play.golang.org/p/A732dMq-5O

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question