BEGIN
  DECLARE l_acode INT DEFAULT 0; --   

  SET @len = length(carplate);
  IF (@len = 0) THEN
    RETURN 0;
  END IF;

  SET l_acode = ascii(carplate);
  IF (l_acode >= 124) THEN
    RETURN 1;
  END IF;
  RETURN 0;
END