Menu:

Recent Entries

About

Sirius

板工秀勇與阿吉管理中

Categories

有關模板 [4]
FreeNX [1]
學用Blog [2]
xoops [5]
TinyMCE [3]
Ubuntu相關 [1]
MySQL [4]
硬體相關 [2]
系統修改 [4]
Windows相關 [5]
校務系統 [3]
Lifetype系統更新 [10]
IMageMagick [1]
XPress [1]
LightBox [1]
CSS [1]
站務公告 [7]
Plugins套用修改 [3]
設備使用 [1]
Moodle [1]
電腦教室管理 [0]

Links

LiftType教學
- LifeType 線上教學(官網)
- 部落格教室(怡杰老師)
- 阿欣部落
- 阿杰老師部落格教室

Syndicate

RSS 0.90
RSS 1.0
RSS 2.0
Atom 0.3

Version:

andreas01 v1.3

上課筆記-[HACK] 集體匯入大量帳號,可是中文姓名都無法顯示

sirius | 08 五月, 2008 05:41

文章來源 Moodle 中文加油站

http://moodle.club.tw/moodle/mod/forum/user.php?id=3&course=1&mode=posts&perpage=5&page=5

【可能解一】
(1)修改程式admin/uploaduser.php
約第190 行, 主要使用 iconv('big5','UTF-8',"******") 來轉換資料編碼為UTF- 8

}
else if ($name == "username") {
$user->username = addslashes(moodle_strtolower($value));
}

// normal entry
else {
//$user->{$name} = addslashes($value);這行mark起來改成下面這行
$user->{$name}=addslashes(iconv('big5','UTF-8',$value));
}
}

(2)如果您想讓使用者帳號可以用中文,那您應該把綠色的三行remark (前面加上 //)(最好不要!)

(3)接下來,您只要將帳號檔案仍依照規定格式編輯好,並正常儲存(BIG5編碼),或用 Excel 編輯,直接儲存成CSV 檔即可批次匯入件帳號.

【適用版本】1.5.x 1.6.x 1.85a

Posted in Moodle . 迴響: (64). 引用:(0). 靜態連結網址
«Next post | Previous post»

Comments

  1. 1. เสาเข็มเจาะ  |  04/20,2019 at 09:11

    รับเหมาเข็มเจาะระบบแห้ง/เปียกราคายุติธรรม
    ที ยู อัมรินทร์ บริษัท จำกัด
    ติดต่อ : 02-416-8153 02-416-8154

  2. 2. be taller  |  07/03,2013 at 08:31

    I hope that you will be elaborating further on this issue.
    I was hoping for a tad more information.

  3. 3. height insoles  |  07/03,2013 at 08:23

    The idea of your blog is totally fresh, I'm sure that the people who will find your blogs surely like your content and opinions.

  4. 4. shoe lifts for men  |  07/03,2013 at 05:36

    Wonderful Article, it is nice to find worthwhile content online, I am pleasently grateful to encounter a blog that is not
    full of the usual drivel, thank you.

  5. 5. shoe lifts for men  |  06/29,2013 at 11:59

    This is a really inspiring post. I really am sincerely impressed when reading your writing.
    You produce extremely helpful ideas. Keep it up.
    Keep blogging. Really looking forward to seeing your
    next article.

  6. 6. shoe lift  |  06/26,2013 at 02:20

    The concept of your blog is really fresh, I
    am certain that the visitors that visit your blogs will take a
    lot from your content and opinions.

  7. 7. height insoles  |  06/25,2013 at 12:47

    Eye opening posting! Finally somebody who knows what they
    are talking about and can as well produce exellent
    blogging for us that read it. Eagerly looking forward to your next offering.

  8. 8. shoe lift  |  06/25,2013 at 11:40

    Not many blogs that contain such consistently readable
    and informative content as is on offer here, you have earned the short
    time it will take to write my appreciation of your endeavours.
    Many Many Thanks.

  9. 9. height increase  |  06/25,2013 at 06:42

    In a future comment, I would love to run through some of the reasoning behind our choices.
    Great info here. I always do enjoy viewing your blog
    posts. I learned a lot from them.

  10. 10. be taller  |  06/25,2013 at 06:29

    Such a refreshing change to find some good
    content for once, I reaaly am getting tired of the constant drivel I come across
    lately, thanks.

  11. 11. Mozelle  |  06/11,2013 at 15:12

    A man growing old becomes a child again.

  12. 12. Shoe Lifts  |  06/10,2013 at 22:00

    I sincerely hope that you are going to be elaborating further on this topic.
    I am used to a little more information.

  13. 13. Merissa  |  06/10,2013 at 19:58

    I have not found a lot of blogs that deliver such consistently readable and informative content as is on offer on this one, you are due the time it takes to express my admiration of your work.
    Thank you.

  14. 14. Heel Lifts  |  06/10,2013 at 19:37

    A kiss is a rosy dot over the 'i' of loving.

  15. 15. http://shoelifts1.bloghi.com/2012/05/21/shoe-lifts-and-contemporary-folks.html  |  06/10,2013 at 19:35

    Love possesses not nor will it be possessed, for love is sufficient unto love.

  16. 16. heel lifts  |  06/09,2013 at 08:33

    The sweetest of all sounds is that of the voice of the woman we
    love.

  17. 17. Heel Pads  |  06/08,2013 at 15:49

    You must accept responsibility for your actions, but not the credit for your achievements.

  18. 18. Girl Heels  |  06/08,2013 at 15:47

    Come live in my heart, and pay no rent.

  19. 19. heel lifts for men  |  06/08,2013 at 15:42

    Always keep an open mind and a compassionate heart.

  20. 20. shoe heel lift  |  06/07,2013 at 06:05

    I don't deserve this award, but I have arthritis and I don't deserve that either.

Leave a Reply

發表迴響
 authimage