Print messages from setup

I am trying to get started with Wemos D1 mini Arduino by simply connecting to my wifi and display its progress.
I am using the below code. After uploading the code and open the Serial Monitor nothing get printed to the console? Am I doing something wrong?

If I put Serial.println("Hello ");
I get some weird encoding coming out “7:14:55.029 → ⸮⸮b⸮bjbjb⸮⸮b⸮⸮j⸮⸮b⸮b⸮bjb⸮⸮b⸮⸮” which just carries on. Suggestions why this is?

#include <ESP8266WiFi.h>
const char* ssid = "xxxxxxx";
const char* password = "xxxxxxx";
void setup() {
  // Connect to WiFi network
  Serial.print("Connecting to ");
  WiFi.begin(ssid, password);
  while (WiFi.status() != WL_CONNECTED) {
  Serial.println("WiFi connected");

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

Make sure you have 115200 selected from the baudrate menu at the bottom right of Serial Monitor.

Great thank you, it now print Hello properly :) Will need to read up on the Serial Monitor.

EDIT: It works fine now, also displaying the serial.print from the setup function. Not sure why I could not see that at first. All good now. Thanks again

Does it make any difference if the print statement is in the setup function? The example is taken from a tutorial but the connection progress is not shown in the serial monitor.