# Dependency of Codepage processing on the GMT version

**URL:** <https://forum.generic-mapping-tools.org/t/dependency-of-codepage-processing-on-the-gmt-version/3853>\
**Category:** Q&A\
**Created:** [April 17, 2023, 1:06pm UTC](https://forum.generic-mapping-tools.org/t/dependency-of-codepage-processing-on-the-gmt-version/3853 "2023-04-17T13:06:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexander](https://avatars.discourse-cdn.com/v4/letter/a/bc8723/32.png) [@Alexander](https://forum.generic-mapping-tools.org/u/Alexander)\
**Post date:** [April 17, 2023, 1:06pm UTC](https://forum.generic-mapping-tools.org/t/dependency-of-codepage-processing-on-the-gmt-version/3853/1 "2023-04-17T13:06:44Z")

</div>

Hi, dear developers.  
Finally found the cause of my difficulties. There are degree signs on map and Cyrillic font simultaneously in case of GMT 6.1.1. Beginning with gmt 6.2 font does not displayed incorrectly (non-printable characters instead).  
Another one differences.

- GS generates a lot of messages “Warning: EPS file should be careful using /setmatrix” in case of 6.1.
- i forced to add x-shift (20) to locate text in zero position. It looks like pstext waiting for two bytes string in this sample
- you can’t use two code pages in one basemap, but somehow there is an influence of one on the other

Please look at my script

> for /f %%i in (‘gmt --version’) do set v=%%i  
> psbasemap -JX14/12 -R0/70/0/14 -B+t"%v% \274\325\342\320\335" -K -Y0 -P --PS\_CHAR\_ENCODING=ISO-8859-5\>0.ps  
> echo 20 7.5 \274\325\342\320\335 \276\321\351\325\325\40\341\336\324\325\340\326\320\335\330\325 |pstext -R -J -F+f16 -O -K\>\>0.ps  
> gmt set MAP\_FRAME\_TYPE fancy MAP\_FRAME\_AXES wEsN  
> pscoast -Jq0.9 -A6000 -R10/20/40/45 -I1/0.1p,0/0/50 -Df -W0.2p,0/0/0 -O -B2/2 --PS\_CHAR\_ENCODING=ISOLatin1+ -Y7\>\>0.ps

There was a similar question last year, but i don’t understand how to use -Byaf+u@. in this case.  
[mar 2022](https://flint.soest.hawaii.edu/t/celsius-degrees/2671)  
[and this another one](https://flint.soest.hawaii.edu/t/custom-font-on-windows/2300/10)

I would like to use updated versions in the future

Thank you

---

<div class="post-metadata">

**Author:** ![PlanetGus](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/planetgus/32/303_2.png) [@PlanetGus](https://forum.generic-mapping-tools.org/u/PlanetGus)\
**Post date:** [April 17, 2023, 2:01pm UTC](https://forum.generic-mapping-tools.org/t/dependency-of-codepage-processing-on-the-gmt-version/3853/2 "2023-04-17T14:01:47Z")

</div>

> [@Alexander](#):
>
> but i don’t understand how to use -Byaf+u@.

> [text — GMT 6.6.0 documentation](https://docs.generic-mapping-tools.org/dev/text.html)

First table, last line 🙂

I guess you would have to add `-Byafg+u@.` to `psbasemap -B+t[...]`

---

<div class="post-metadata">

**Author:** ![Alexander](https://avatars.discourse-cdn.com/v4/letter/a/bc8723/32.png) [@Alexander](https://forum.generic-mapping-tools.org/u/Alexander)\
**Post date:** [April 17, 2023, 3:36pm UTC](https://forum.generic-mapping-tools.org/t/dependency-of-codepage-processing-on-the-gmt-version/3853/3 "2023-04-17T15:36:38Z")

</div>

Thank you, but degree symbol need to be used not in a title (or any text). I’d like to see it in map grid labels

 ![Clipboard-1](https://canada1.discourse-cdn.com/flex047/uploads/gmt/original/2X/9/9587a28ddacc57931b3a076b40ab7dc3bd1bda6e.png)  
Not in invisible basemap, but in pscoast

---

<div class="post-metadata">

**Author:** ![pwessel](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/pwessel/32/30_2.png) [@pwessel](https://forum.generic-mapping-tools.org/u/pwessel)\
**Post date:** [April 17, 2023, 5:34pm UTC](https://forum.generic-mapping-tools.org/t/dependency-of-codepage-processing-on-the-gmt-version/3853/4 "2023-04-17T17:34:23Z")

</div>

Looks like I started fixing this a long time a go and got side-tracked. I just submitted a new PR on GitHub: [https://github.com/GenericMappingTools/gmt/pull/7402](https://github.com/GenericMappingTools/gmt/pull/7402)  
This PR works for me with your example (get degree symbols instead of A) and shows Cyrillic text. It would be helpful if you could test this branch,
