Keyboard and azerty

Hi,

I have an issue with Arduino Leonardo and Keyboard library.

I have a variable str = "password"

And when I send Keyboard.print(str ) it displays me "pqsszord".

I search on Google and forum and I don't find how to set the langage for keyboard.

If someone can help me I appreciate it.

Regards

If you want software help , post your code.

Here is my code

int a = 0;

//Function setup
void setup(void)
{
  Serial.begin(9600);

  //Initialize Keyboard Control
  Keyboard.begin();
}

//Function loop
void loop(void)
{
	a += 1;
	if (a == 1000){
		Keyboard.print("password");
	}
}

Here is my code

Which produces this:

sketch_may19a.ino: In function 'void setup()':
sketch_may19a:18: error: 'sleep' was not declared in this scope

remove the line.
It try it on arduino pro micro