Hell All,

I have an odd problem:

```js
//dataText hold current language data that's gathered from another function
//pick one to test it out
//if english data gathered
var dataText = ["Data uploads"];
//if french data gathered
var dataText = ["Envois de données"];

function lang_lib(lang) {   
    var data_fre = [13, 'Envois de données'];
    var data_eng = [14, 'Data uploads'];
    var data_lang, rep_lang;

    switch(lang) {
        case "English":
            data_lang = data_eng;
            data_rep = rep_eng;
            break;
        case "Français":
            data_lang = data_fre;
            data_rep = rep_fre;
            break;
        default:
            $('table.infobox tbody').append('<tr><td id="lang-fail"><ul class="first last"><li>User language is not available</li></ul></td></tr>');
    };

    this.data_uploads = data_lang[1];
}
_lang = new lang_lib($('#toplinks-language').text());

//if lang_lib("English")
alert($.inArray(_lang.data_uploads, dataText)); // 0

//if lang_lib("Français")
alert($.inArray(_lang.data_uploads, dataText)); // -1

```

I shortened the code but it should give a general idea of what I'm trying to achieve.

I know it seems weird why I would be using the same data in two arrays but the data\_fre and data\_eng have language specific dataText info plus other language specific data as well. dataText will have non-specific language data which is why I'm testing it agains data\_fre or data\_eng to find which language to use.

I can't figure out why it would return -1 because I have other languages set (with special character too like Russian text) and they all return 0.

Appreciate the help :)