Set encoding of scalebar