Our teacher, the Beit Yosef, wrote in section 2: One who does not know how to read—one must protest against him so that he does not ascend to the Sefer Torah. And if they need this person who does not know how to read because he is a kohen or a levi, and there is no other besides him, if when the shaliach tzibbur reads to him word by word he knows how to say it and read it from the script—he may ascend. And if not—he shall not ascend. Thus far his words. And behold, it is certain that "knowing how to read" is only necessary during the time of the Shas when the one who ascends reads himself. But in our times, why is it necessary that he be able to read himself? However, that he be able to say after the shaliach tzibbur word by word is certainly necessary even now, for if not so, his berakhah is in vain. And according to the opinion of our teacher, the Beit Yosef, he must be able to read from the script. And he follows his reasoning in section 4 that a blind person does not read, since it is forbidden to read not from the script. But according to our teacher, the Rema, there, who cited in the name of the Maharil that nowadays a blind person reads regardless, for he does not need to be able to read from the script. However, after the shaliach tzibbur he certainly must be able to read, as our teacher, the Beit Yosef, wrote below in siman 141, section 2, that the one who ascends must read in a whisper with the shaliach tzibbur; for if not so, his berakhah is in vain, for how can he recite a berakhah on what another reads? But the giants of the world have already written that even a complete am ha'aretz who cannot read even after the shaliach tzibbur, nevertheless ascends to the Torah because "hearing is like responding," and he can recite the berakhah (Taz ibid. subsection 3 and Knesset HaGedolah). And also our teacher, the Beit Yosef, himself in his great book there, wrote based on Zohar "Vayakhel" that in this "hearing is like responding," see there. And such is the simple custom in most of the dispersions of Israel.
כתב רבינו הבית יוסף בסעיף ב: מי שאינו יודע לקרות – צריך למחות בידו שלא יעלה לספר תורה. ואם צריכים לזה שאינו יודע לקרות לפי שהוא כהן או לוי, ואין שם אחר זולתו, אם כשיקרא לו שליח ציבור מילה במילה יודע לאומרה ולקרותה מן הכתב – יכול לעלות. ואם לאו – לא יעלה. עד כאן לשונו. והנה זהו וודאי ד"יודע לקרות" אין צריך רק בזמן הש"ס שהעולה בעצמו קורא. אבל בזמנינו למה צריך שיהא ביכולתו בעצמו לקרות? מיהו שיהא ביכולתו לאמר אחר שליח הציבור מילה במילה וודאי שצריך גם עתה, דאם לא כן הוי ברכתו לבטלה. ולדעת רבינו הבית יוסף צריך שיהא יכול לקרוא מתוך הכתב. והולך לשיטתו בסעיף ד דסומא אינו קורא, לפי שאסור לקרות שלא מן הכתב. אבל לרבינו הרמ"א שם שהביא משם מהרי"ל דעכשיו קורא סומא ממילא, דאינו צריך שיהא יכול לקרות מתוך הכתב. מיהו אחר שליח הציבור וודאי שצריך שיהא יכול לקרות, וכמו שכתב רבינו הבית יוסף לקמן סימן קמ"א סעיף ב דהעולה צריך לקרות בלחש עם שליח הציבור; דאם לא כן הוי ברכתו לבטלה, דאיך יברך על מה שאחר יקרא? אבל כבר כתבו גדולי עולם דאפילו עם הארץ גמור שאינו יכול לקרות גם אחר שליח הציבור, מכל מקום עולה לתורה דשומע כעונה, ויכול לברך (ט"ז שם סעיף קטן ג' וכנסת הגדולה). וגם רבינו הבית יוסף בעצמו בספרו הגדול שם, כתב על פי זוהר "ויקהל" דבזה שומע כעונה, עיין שם. וכן הוא המנהג הפשוט ברוב תפוצות ישראל.