Odd symbols in serial monitor. A real rigmarole

Hi all. This is not really, really, really important but it would be good to get rid of it.
When I upload a sketch to the ESP32, on the serial monitor, I see a set of strange characters just after platformio finishes. Then everything looks fine, but this “process-upload-end” is odd. Does anybody know what is the reason for that and if there is some way to fix it? Thank you in advance.
The symbols are like this:

*--- Terminal on COM8 | 115200 8-N-1
--- Available filters and text transformations: colorize, debug, default, direct, esp32_exception_decoder, hexlify, log2file, nocontrol, printable, send_on_enter, time
--- More details at https://bit.ly/pio-monitor-filters
--- Quit: Ctrl+C | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H
��˙��sip:�, S�]A鰕�57���r��� (POWQ���%UM␕Q�,boo����3 (S�Re␅MT_FLP*�%=�T)
,k}��v:0x�,q_����0,�E���0x00��.���v:0�0,h�E���0x00��}��v:0x�
m����R�␂␚�ock"���2
l�X���Mfff��0,�Yˊ��4
�+��0x400␓���bb���&�&j
load'��0�040�le�&��j
ent��0x␓��*�
Leyendo datos del sensor DHT11
Temperatura: 21.0*C, Humedad Relativa: 55.0%
Leyendo datos del sensor DHT11
Temperatura: 22.0*C, Humedad Relativa: 55.0%*

Does this output also happen with a pure blank sketch and nothing connected to your ESP32 ?

Which baud rate are you using? On boot, ESP32 boards output something like this:
image
If you are not using 115200 baud, this will be corrupted, resulting in odd symbols.

I had not tested it but, yes. I have just teste with a newly created project,

#include <Arduino.h>

// put function declarations here:
int myFunction(int, int);

void setup() {
  // put your setup code here, to run once:
  int result = myFunction(2, 3);
}

void loop() {
  // put your main code here, to run repeatedly:
}

// put function definitions here:
int myFunction(int x, int y) {
  return x + y;
}

and the result is:

— Terminal on COM8 | 9600 8-N-1
— Available filters and text transformations: colorize, debug, default, direct, esp32_exception_decoder, hexlify, log2file, nocontrol, printable, send_on_enter, time
— More details at Redirecting...
— Quit: Ctrl+C | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H
G��Ώ␄�!␟��ӡ��rBR␑[␀�

Hi peter. Yes, I am using 115200 baud. In fact, after this strange starting, the rest of received data look fine. Yo can see it in my first post, when I write, from the sketch, the value of temp and humidity.
The platformio.ini file has this line:

monitor_speed = 115200

By the way, I have tested to close de first opened serial port monitor in platformio, and open a new one while the board is still connected and “working”. It only shows this (I think everything is correct):

--- Terminal on COM8 | 9600 8-N-1
--- Available filters and text transformations: colorize, debug, default, direct, esp32_exception_decoder, hexlify, log2file, nocontrol, printable, send_on_enter, time
--- More details at https://bit.ly/pio-monitor-filters
--- Quit: Ctrl+C | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H

But, if while being connected, I press the tiny reset button, I get this “new” line:

@�␄␃���L�␓���␅B#�#␟"␛a�

Of course, the symbols appearing each time are different.

Your monitor_speed is still not set or set to 9600
change this in your platformio.ini:

monitor_speed = 115200

Hi Sivar. Yes. It is what I said in a message before. I have just wrote it this morning.

Edit: I have just found another post talking about it and the given solution.

I would like the reason but, at least, I got to get rid of it.